Files
kotlin-fork/analysis/low-level-api-fir/testdata/contextCollector/smartCasts/andRight.kt
T
2023-09-04 15:47:56 +00:00

11 lines
169 B
Kotlin

interface Foo {
val isValid: Boolean
}
fun test(obj: Any) {
if (obj is Foo && <expr>obj.isValid</expr>) {
consume(obj)
}
}
fun consume(obj: Foo) {}