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