Files
kotlin-fork/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.kt
T
2020-10-05 12:06:53 +03:00

14 lines
267 B
Kotlin
Vendored

fun box(): String {
val obj = object {
val end = "K"
fun foo() = Some("O").bar()
inner class Some(s: String) : Base(s) {
fun bar() = s + end
}
open inner class Base(val s: String)
}
return obj.foo()
}