mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
16 lines
186 B
Kotlin
Vendored
16 lines
186 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
interface T {
|
|
fun foo(): String
|
|
}
|
|
|
|
val o = object : T {
|
|
val a = "OK"
|
|
val f = {
|
|
a
|
|
}()
|
|
|
|
override fun foo() = f
|
|
}
|
|
|
|
fun box() = o.foo()
|