Files
kotlin/compiler/testData/codegen/box/objects/anonymousObjectPropertyInitialization.kt
2018-08-09 14:22:50 +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()