Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/loops/dataFlowInfoFromWhileCondition.kt
T
2020-03-19 09:51:01 +03:00

13 lines
173 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()
}
}