2d920df507
#KT-59346 #KT-55993
34 lines
668 B
Kotlin
Vendored
34 lines
668 B
Kotlin
Vendored
// FILE: test.kt
|
|
|
|
fun box() {
|
|
var x: String
|
|
var y: Int
|
|
var z: Boolean
|
|
z = false
|
|
y = 42
|
|
if (!z) {
|
|
x = y.toString()
|
|
}
|
|
}
|
|
|
|
// The JVM IR backend does generate line number information for the
|
|
// declaration of local variables without initializer.
|
|
// Stepping through those is useful for breakpoinnts.
|
|
// The JVM backend does generate these line numbers as well.
|
|
|
|
// EXPECTATIONS JVM JVM_IR
|
|
// test.kt:4 box
|
|
// test.kt:5 box
|
|
// test.kt:6 box
|
|
// test.kt:7 box
|
|
// test.kt:8 box
|
|
// test.kt:9 box
|
|
// test.kt:10 box
|
|
// test.kt:12 box
|
|
|
|
// EXPECTATIONS JS_IR
|
|
// test.kt:7 box
|
|
// test.kt:8 box
|
|
// test.kt:9 box
|
|
// test.kt:10 box
|
|
// test.kt:12 box |