Files
kotlin/compiler/testData/codegen/bytecodeText/nullCheckOptimization/redundantSafeCall_1_4.kt
Alexander Udalov 2baddb029c Use Intrinsics.checkNotNullParameter to throw NPE in parameter null checks
Similarly to previous commits, this method was unused, so we're changing
its semantics in API version >= 1.4.

 #KT-22275 In Progress
2019-08-12 16:09:23 +02:00

9 lines
112 B
Kotlin
Vendored

// !API_VERSION: LATEST
fun test(s: String) = s?.length
// 0 IFNULL
// 0 IFNONNULL
// 0 intValue
// 0 valueOf