7d7b9262e7
These line number tests only tested that a set of line numbers where present in the java bytecode. Not that they would be hit in the right order by the debugger. Moving them to stepping tests fixes that. This exposes a couple of issues (in particular around try-catch-finally) that should be fixed. A number of tests are marked as failing now. Will investigate and work on fixes next.
31 lines
405 B
Kotlin
Vendored
31 lines
405 B
Kotlin
Vendored
// FILE: test.kt
|
|
|
|
fun box() {
|
|
foo({
|
|
val a = 1
|
|
})
|
|
|
|
foo() {
|
|
val a = 1
|
|
}
|
|
}
|
|
|
|
fun foo(f: () -> Unit) {
|
|
f()
|
|
}
|
|
|
|
// LINENUMBERS
|
|
// test.kt:4 box
|
|
// test.kt:14 foo
|
|
// test.kt:5 invoke
|
|
// test.kt:6 invoke
|
|
// test.kt:14 foo
|
|
// test.kt:15 foo
|
|
// test.kt:8 box
|
|
// test.kt:14 foo
|
|
// test.kt:9 invoke
|
|
// test.kt:10 invoke
|
|
// test.kt:14 foo
|
|
// test.kt:15 foo
|
|
// test.kt:11 box
|