33e6a85a2d
We exclude testData pattern from copyright scope
14 lines
236 B
Kotlin
Vendored
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) {} |