Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/kt6819.fir.kt
T

7 lines
197 B
Kotlin
Vendored

public fun test(o: String?): Boolean {
return when {
// Data flow info should propagate from o == null to o.length
o == null, o.length == 0 -> false
else -> true
}
}