Files
kotlin-fork/compiler/testData/codegen/bytecodeText/nullCheckOptimization/redundantSafeCall_1_4.kt
T
2023-02-27 15:00:30 +00:00

11 lines
197 B
Kotlin
Vendored

// !LANGUAGE: -SafeCallsAreAlwaysNullable
// IGNORE_BACKEND_K2: JVM_IR
// Status: Feature is always on in K2
fun test(s: String) = s?.length
// 0 IFNULL
// 0 IFNONNULL
// 0 intValue
// 0 valueOf