Files
kotlin-fork/compiler/testData/codegen/bytecodeText/nullCheckOptimization/nullCheckAfterExclExcl_1_4.kt
T
2021-07-20 13:33:41 +03:00

14 lines
173 B
Kotlin
Vendored

// !API_VERSION: LATEST_STABLE
fun test(s: String?): Int {
s!!
if (s == null) {
return 5
}
return 3
}
// 1 checkNotNull
// 0 IFNULL
// 0 IFNONNULL