Files
kotlin-fork/j2k/testData/fileOrElement/constructors/noPrimary.kt
T
2015-03-15 22:30:19 +01:00

22 lines
408 B
Kotlin

class C {
constructor(arg1: Int, arg2: Int, arg3: Int) {
}
constructor(arg1: Int, arg2: Int) : this(arg1, arg2, 0) {
System.out.println()
}
constructor(arg: Int) {
System.out.println(arg)
}
}
public class User {
default object {
public fun main() {
val c1 = C(1, 2, 3)
val c2 = C(5, 6)
val c3 = C(7)
}
}
}