0fbf648971
^KT-61599 Fixed
14 lines
236 B
Kotlin
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) {} |