4690a430f4
'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
17 lines
239 B
Kotlin
Vendored
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
|
|
} |