Files
kotlin-fork/analysis/low-level-api-fir/testdata/contextCollector/smartCasts/beforeLoop.kt
T
2023-09-04 15:47:56 +00:00

14 lines
236 B
Kotlin

interface Node {
val parent: Node?
}
fun test(initial: Node) {
<expr>var current = initial</expr>
while (current != null) {
consume(current)
current = current.parent
}
}
fun consume(node: Node) {}