Files
kotlin-fork/compiler/testData/codegen/bytecodeText/temporaryVals/notNullReceiversInChain.kt
T
2021-09-29 19:14:32 +03:00

17 lines
202 B
Kotlin
Vendored

class A(val b: B)
class B(val c: C)
class C(val s: String)
fun test(na: A?) =
na?.b?.c?.s
// 1 POP
// 1 ACONST_NULL
// JVM_IR_TEMPLATES
// 1 DUP
// 1 IFNULL
// JVM_TEMPLATES
// 3 DUP
// 3 IFNULL