JVM_IR fold safe calls and elvises
This commit is contained in:
committed by
teamcityserver
parent
7370d096ee
commit
9325660f06
Vendored
+5
-4
@@ -1,11 +1,12 @@
|
||||
fun test(a: Any?, b: Any?, c: String) =
|
||||
a?.toString() ?: b?.toString() ?: c
|
||||
|
||||
// 2 IFNULL
|
||||
// 1 ACONST_NULL
|
||||
|
||||
// JVM_IR_TEMPLATES
|
||||
// 1 IFNONNULL
|
||||
// 2 IFNULL
|
||||
// 0 IFNONNULL
|
||||
// 0 ACONST_NULL
|
||||
|
||||
// JVM_TEMPLATES
|
||||
// 2 IFNULL
|
||||
// 1 ACONST_NULL
|
||||
// 2 IFNONNULL
|
||||
Reference in New Issue
Block a user