Allow secondary constructors without body
#KT-6967 Fixed
This commit is contained in:
+4
-4
@@ -2,11 +2,11 @@
|
||||
fun <T> array(vararg x: T): Array<T> = null!!
|
||||
|
||||
open class B(vararg y: String) {
|
||||
constructor(x: Int): this(x.toString(), *array("1"), "2") {}
|
||||
constructor(x: Int): this(x.toString(), *array("1"), "2")
|
||||
}
|
||||
|
||||
class A : B {
|
||||
constructor(x: String, y: String): super(x, *array("3"), y) {}
|
||||
constructor(x: String): super(x) {}
|
||||
constructor(): super() {}
|
||||
constructor(x: String, y: String): super(x, *array("3"), y)
|
||||
constructor(x: String): super(x)
|
||||
constructor(): super()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user