Files
kotlin-fork/idea/testData/unifier/equivalence/controlStructures/while.kt
T

24 lines
352 B
Kotlin

// WITH_RUNTIME
fun foo(a: Int, b: Int) {
var t = a
<selection>while (t != (a + b)) {
println(t)
t++
}</selection>
var u = a
while (u != a + b) {
println(t)
t++
}
do {
println(t)
t++
} while (t != a + b)
while (t != a + b) {
println((t))
t++
}
}