Files
kotlin-fork/compiler/testData/lineNumber/custom/beforeGotoToWhileStart.kt
T
Nikolay Krasko 57ef3f5656 Generate linenumber for goto instruction in while (KT-13059)
Otherwise linenumber for previous instruction will be used in debugger. That can lead to error stepping
because it might be line that isn't reachable on current iteration.

 #KT-13059 Fixed
2016-07-12 15:19:02 +03:00

13 lines
155 B
Kotlin
Vendored

fun foo() {
while (true) {
if (testSome()) {
break
}
}
}
fun testSome(): Boolean {
return false
}
// 2 3 4 2 7 10