Represent class instance initialization "as from resolve".
This commit is contained in:
committed by
Dmitry Petrov
parent
c3c758c7cc
commit
1b5dd50359
@@ -0,0 +1,31 @@
|
||||
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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user