Files
Yan Zhulanow 4690a430f4 [LL API] Fix smart-cast collection for special 'FirElement's
'DFANode' is not created for certain elements, such as types or
references. Before the change, only the target element itself was
queried for DFA, making the 'ContextCollector' return an empty map of
smart casts.

^KTIJ-26973 Fixed
2023-09-22 13:40:09 +00:00

17 lines
239 B
Kotlin
Vendored

fun test(a: Any) {
if (a !is Foo) {
return
}
var result: Int = 0
<expr>loop@</expr> while (true) {
if (!a.process()) {
break@loop
}
}
}
interface Foo {
fun process(): Boolean
}