Generate line numbers for closing '}' in 'init {}' blocks (KT-12787)

This commit is contained in:
Yan Zhulanow
2019-03-19 21:46:15 +03:00
parent a385b4d9d0
commit 55bbcc4601
8 changed files with 98 additions and 2 deletions
+34
View File
@@ -0,0 +1,34 @@
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
}
}
fun x() = ""
// IGNORE_BACKEND: JVM_IR
// 2 2 1 5 6 9 11 12 15 16 24 19 21 22 24 27 28 31