Files
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

14 lines
236 B
Kotlin
Vendored

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) {}