Files
kotlin-fork/compiler/fir/psi2fir/testData/rawBuilder/expressions/while.kt
T
Mikhail Glukhikh db2fb86c8e Raw FIR: implement expression trees & conversions from PSI
Testing: total kotlin test controls no stubs in FIR in non-stub-mode
#KT-29002 Fixed
2019-02-06 11:58:59 +03:00

20 lines
334 B
Kotlin
Vendored

fun foo(limit: Int) {
var k = 0
some@ while (k < limit) {
k++
println(k)
while (k == 13) {
k++
if (k < limit) break@some
if (k > limit) continue
}
}
}
fun bar(limit: Int) {
var k = limit
do {
k--
println(k)
} while (k >= 0)
}