Files
kotlin-fork/compiler/testData/codegen/box/objects/kt3684.kt
T
2021-11-20 03:37:31 +03:00

20 lines
403 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: NPE: null cannot be cast to not-null type IrPropertySymbol
// while translating this@R|/<anonymous>|.R|/X.n|
open class X(private val n: String) {
fun foo(): String {
return object : X("inner") {
fun print(): String {
return n;
}
}.print()
}
}
fun box() : String {
return X("OK").foo()
}