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

17 lines
445 B
Plaintext
Vendored

FILE: dataFlowInfoFromWhileCondition.kt
public abstract interface A : R|kotlin/Any| {
public abstract fun foo(): R|kotlin/Boolean|
}
public abstract interface B : R|A| {
}
public abstract interface C : R|A| {
}
public final fun test(): R|kotlin/Unit| {
lvar a: R|A?| = Null(null)
while((R|<local>/a| is R|B|) || (R|<local>/a| is R|C|)) {
R|<local>/a|.R|/A.foo|()
}
}