11 lines
194 B
Kotlin
Vendored
11 lines
194 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
open class C(val f: () -> String)
|
|
|
|
class B(val x: String) {
|
|
fun foo(): C {
|
|
class A : C({x}) {}
|
|
return A()
|
|
}
|
|
}
|
|
|
|
fun box() = B("OK").foo().f() |