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

24 lines
358 B
Kotlin

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