Add init test.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class Test {
|
||||
companion object {
|
||||
init {
|
||||
println("Init Test")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun main(args : Array<String>) {
|
||||
val t1 = Test()
|
||||
val t2 = Test()
|
||||
println("Done")
|
||||
}
|
||||
Reference in New Issue
Block a user