Files
kotlin/compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/safeCall.kt
2020-02-14 14:07:03 +03:00

17 lines
219 B
Kotlin
Vendored

// TODO KT-36654 Generate more compact bytecode for safe call in JVM_IR
interface A {
fun foo()
}
fun test(x: A?) {
x?.foo()
}
// JVM_TEMPLATES
// 1 POP
// 0 ACONST_NULL
// JVM_IR_TEMPLATES
// 0 ACONST_NULL