Files
kotlin/compiler/testData/codegen/box/objects/anonymousObjectPropertyInitialization.kt
2020-03-30 16:57:52 +03:00

15 lines
160 B
Kotlin
Vendored

interface T {
fun foo(): String
}
val o = object : T {
val a = "OK"
val f = {
a
}()
override fun foo() = f
}
fun box() = o.foo()