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
58 lines
1.0 KiB
Kotlin
Vendored
58 lines
1.0 KiB
Kotlin
Vendored
// FILE: test.kt
|
|
|
|
interface A {
|
|
fun foo() = 32
|
|
|
|
fun bar(): Int {
|
|
return foo()
|
|
}
|
|
}
|
|
|
|
class B : A
|
|
|
|
fun box() {
|
|
(object : A {}).bar()
|
|
B().bar()
|
|
}
|
|
|
|
// The dispatch methods added to classes directly implementing
|
|
// interfaces with default methods (forwarding to the actual implementation
|
|
// on A$DefaultImpls) have the line number of the class declaration.
|
|
|
|
// EXPECTATIONS JVM JVM_IR
|
|
// test.kt:14 box
|
|
// test.kt:14 <init>
|
|
// test.kt:14 box
|
|
// test.kt:14 bar
|
|
// test.kt:7 bar
|
|
// test.kt:14 foo
|
|
// test.kt:4 foo
|
|
// test.kt:14 foo
|
|
// test.kt:7 bar
|
|
// test.kt:14 bar
|
|
// test.kt:14 box
|
|
// test.kt:15 box
|
|
// test.kt:11 <init>
|
|
// test.kt:15 box
|
|
// test.kt:11 bar
|
|
// test.kt:7 bar
|
|
// test.kt:11 foo
|
|
// test.kt:4 foo
|
|
// test.kt:11 foo
|
|
// test.kt:7 bar
|
|
// test.kt:11 bar
|
|
// test.kt:15 box
|
|
// test.kt:16 box
|
|
|
|
// EXPECTATIONS JS_IR
|
|
// test.kt:14 box
|
|
// test.kt:14 <init>
|
|
// test.kt:14 box
|
|
// test.kt:7 bar
|
|
// test.kt:4 foo
|
|
// test.kt:15 box
|
|
// test.kt:11 <init>
|
|
// test.kt:15 box
|
|
// test.kt:7 bar
|
|
// test.kt:4 foo
|
|
// test.kt:16 box |