Files
kotlin-fork/compiler/testData/lineNumber/custom/initBlocks.kt
T
Yan Zhulanow 076166c22f Debugger: Generate line numbers for class initializers with a number on the 'init' keyword (KT-16277)
Debugger tests not absent as they use the bootstrap version of kotlinc.
Obviously, this change is not present in it yet.
2019-11-25 17:26:31 +09:00

46 lines
503 B
Kotlin
Vendored

class Foo {
var a: String
init {
a = x()
}
}
class Bar {
init {
val a = 5
}
init {
val b = 2
}
}
class Boo {
init {
val a = 5
}
val x = x()
init {
val b = 2
}
}
class Zoo {
init { val a = 5 }
init { val b = 6 }
init {
val c = 7
}
init { val d = 8 }
}
fun x() = ""
// IGNORE_BACKEND: JVM_IR
// 2 2 1 4 5 6 9 10 11 12 14 15 16 24 19 20 21 22 24 26 27 28 31 32 34 36 37 38 40 43