mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
45 lines
455 B
Kotlin
Vendored
45 lines
455 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
class Test1 {
|
|
init {
|
|
println()
|
|
}
|
|
}
|
|
|
|
class Test2(val x: Int) {
|
|
init {
|
|
println()
|
|
}
|
|
}
|
|
|
|
class Test3 {
|
|
init {
|
|
println()
|
|
}
|
|
|
|
constructor()
|
|
}
|
|
|
|
class Test4 {
|
|
init {
|
|
println("1")
|
|
}
|
|
|
|
constructor()
|
|
|
|
init {
|
|
println("2")
|
|
}
|
|
}
|
|
|
|
class Test5 {
|
|
init {
|
|
println("1")
|
|
}
|
|
|
|
inner class TestInner {
|
|
init {
|
|
println("2")
|
|
}
|
|
}
|
|
} |