mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
16 lines
220 B
Kotlin
Vendored
16 lines
220 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
class B () {}
|
|
|
|
open class A(val b : B) {
|
|
fun a(): A = object: A(b) {}
|
|
}
|
|
|
|
fun box() : String {
|
|
val b = B()
|
|
val a = A(b).a()
|
|
|
|
if (a.b !== b) return "failed"
|
|
|
|
return "OK"
|
|
}
|