Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
box
/
objects
/
objectWithSuperclass.kt
blob: 31c004a45fbff80e2e0779a2c230acf9d4ff3e4a [
file
] [
log
] [
blame
]
open
class
A
{
open fun foo
():
Int
{
return
2
}
}
object
O
:
A
()
{
override
fun foo
():
Int
{
val s
=
super
<
A
>.
foo
()
return
s
+
3
}
}
fun box
()
:
String
{
return
if
(
O
.
foo
()
==
5
)
"OK"
else
"fail"
}