a939f9ccd0
Namely: - Generate debug info for closing braces, which allows the breakpoints set on closing braces to be hit - Generate debug info for 'if' and 'try/catch' statements. KT-46276
65 lines
987 B
Kotlin
Vendored
65 lines
987 B
Kotlin
Vendored
// FILE: test.kt
|
|
|
|
class A {
|
|
companion object {
|
|
val s: String
|
|
|
|
init {
|
|
s = "OK"
|
|
}
|
|
|
|
val x = x()
|
|
|
|
init { val a = 32 }
|
|
|
|
init {
|
|
val b = 42
|
|
}
|
|
|
|
init
|
|
{
|
|
val c = 43
|
|
}
|
|
}
|
|
}
|
|
|
|
fun x() = ""
|
|
|
|
fun box() {
|
|
A.x
|
|
A.s
|
|
}
|
|
|
|
// EXPECTATIONS JVM JVM_IR
|
|
// test.kt:29 box
|
|
// test.kt:7 <clinit>
|
|
// test.kt:8 <clinit>
|
|
// test.kt:9 <clinit>
|
|
// test.kt:11 <clinit>
|
|
// test.kt:13 <clinit>
|
|
// test.kt:15 <clinit>
|
|
// test.kt:16 <clinit>
|
|
// test.kt:17 <clinit>
|
|
// test.kt:19 <clinit>
|
|
// test.kt:21 <clinit>
|
|
// test.kt:22 <clinit>
|
|
// test.kt:11 getX
|
|
// test.kt:11 getX
|
|
// test.kt:29 box
|
|
// test.kt:30 box
|
|
// test.kt:5 getS
|
|
// test.kt:5 getS
|
|
// test.kt:30 box
|
|
// test.kt:31 box
|
|
|
|
// EXPECTATIONS JS_IR
|
|
// test.kt:29 box
|
|
// test.kt:8 <init>
|
|
// test.kt:11 <init>
|
|
// test.kt:26 x
|
|
// test.kt:13 <init>
|
|
// test.kt:16 <init>
|
|
// test.kt:21 <init>
|
|
// test.kt:4 <init>
|
|
// test.kt:30 box
|
|
// test.kt:31 box |