Wrong stepping for if followied by captured variable

#KT-9118 Fixed
This commit is contained in:
Natalia Ukhorskaya
2015-09-11 12:22:39 +03:00
parent dfe9bb65b0
commit 137f8b242a
4 changed files with 31 additions and 0 deletions
@@ -0,0 +1,16 @@
package ifCapturedVariableKt9118
fun main(args: Array<String>) {
//Breakpoint!
if (1 > 2) {
println()
}
var isCompiledDataFromCache = true
foo {
isCompiledDataFromCache = false
}
}
fun foo(f: () -> Unit) {
f()
}