Files
kotlin-fork/compiler/testData/ir/irText/classes/initBlock.kt.txt
T
Dmitriy Novozhilov b454fcc1e0 [FIR] Save IR dumps to .ir.txt files instead of .txt in tests
This is needed to avoid clashes between different dumps from different
  handlers
2021-10-12 17:26:36 +03:00

86 lines
847 B
Kotlin
Vendored

class Test1 {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
init {
println()
}
}
class Test2 {
constructor(x: Int) /* primary */ {
super/*Any*/()
/* <init>() */
}
val x: Int
field = x
get
init {
println()
}
}
class Test3 {
init {
println()
}
constructor() {
super/*Any*/()
/* <init>() */
}
}
class Test4 {
init {
println(message = "1")
}
constructor() {
super/*Any*/()
/* <init>() */
}
init {
println(message = "2")
}
}
class Test5 {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
init {
println(message = "1")
}
inner class TestInner {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
init {
println(message = "2")
}
}
}