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