Generate line numbers for closing '}' in 'init {}' blocks (KT-12787)
This commit is contained in:
@@ -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
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user