JVM_IR fold safe calls and elvises
This commit is contained in:
committed by
teamcityserver
parent
7370d096ee
commit
9325660f06
+5
-4
@@ -5,13 +5,14 @@ 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
|
||||
// 0 IFNONNULL
|
||||
// 1 ACONST_NULL
|
||||
|
||||
// JVM_TEMPLATES
|
||||
// 3 DUP
|
||||
// 3 IFNULL
|
||||
// 3 IFNULL
|
||||
// 0 IFNONNULL
|
||||
// 1 ACONST_NULL
|
||||
Reference in New Issue
Block a user