13 lines
251 B
Kotlin
Vendored
13 lines
251 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
|
// See KT-27260
|
|
|
|
class A(val x: String?) {
|
|
fun foo(other: A) {
|
|
when {
|
|
x == null && other.x == null -> "1"
|
|
x<!UNSAFE_CALL!>.<!>length > 0 -> "2"
|
|
}
|
|
}
|
|
}
|