Generate line numbers for closing '}' in 'init {}' blocks (KT-12787)

This commit is contained in:
Yan Zhulanow
2019-03-19 21:46:15 +03:00
parent a385b4d9d0
commit 55bbcc4601
8 changed files with 98 additions and 2 deletions
@@ -0,0 +1,18 @@
package initBlocks
class Foo {
init {
//Breakpoint!
val a = 5
}
init {
val b = 7
}
}
fun main() {
Foo()
}
// STEP_OVER: 5
@@ -0,0 +1,12 @@
LineBreakpoint created at initBlocks.kt:6
Run Java
Connected to the target VM
initBlocks.kt:6
initBlocks.kt:7
initBlocks.kt:10
initBlocks.kt:11
initBlocks.kt:15
initBlocks.kt:16
Disconnected from the target VM
Process finished with exit code 0
@@ -4,7 +4,7 @@ Connected to the target VM
doNotSkipConstructors.kt:5
doNotSkipConstructors.kt:9
doNotSkipConstructors.kt:11
doNotSkipConstructors.kt:5
doNotSkipConstructors.kt:12
Disconnected from the target VM
Process finished with exit code 0