Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/loops/dataFlowInfoFromWhileCondition.kt
T
2020-12-16 19:52:30 +03:00

14 lines
174 B
Kotlin
Vendored

// !DUMP_CFG
interface A {
fun foo(): Boolean
}
interface B : A
interface C : A
fun test() {
var a: A? = null
while (a is B || a is C) {
a.foo()
}
}