Files
kotlin-fork/analysis/low-level-api-fir/testData/contextCollector/smartCasts/afterLoop.kt
T
Dmitrii Gridin 33e6a85a2d [LL FIR] rename testdata to testData to avoid copyright generation
We exclude testData pattern from copyright scope
2023-09-18 21:12:45 +00:00

17 lines
293 B
Kotlin
Vendored

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