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
This commit is contained in:
Nikolay Krasko
2016-07-11 20:30:18 +03:00
parent ce74d6c7df
commit 57ef3f5656
8 changed files with 63 additions and 1 deletions
@@ -0,0 +1,23 @@
package stepOverFalseConditionInLastIfInWhile
fun main(args: Array<String>) {
var i = 0
while (true) {
if (i > 0) {
break
}
i++
//Breakpoint!
if (testSome()) {
some()
}
}
}
fun testSome(): Boolean {
return false
}
fun some() {}