Allow secondary constructors without body
#KT-6967 Fixed
This commit is contained in:
+4
-4
@@ -1,10 +1,10 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
open class B(x: Double) {
|
||||
constructor(x: Int): this(1.0) {}
|
||||
constructor(x: String): this(1.0) {}
|
||||
constructor(x: Int): this(1.0)
|
||||
constructor(x: String): this(1.0)
|
||||
}
|
||||
trait C
|
||||
class A : B, C {
|
||||
constructor(): <!NONE_APPLICABLE!>super<!>(' ') { }
|
||||
<!NONE_APPLICABLE!>constructor<!>(x: Int) { }
|
||||
constructor(): <!NONE_APPLICABLE!>super<!>(' ')
|
||||
<!NONE_APPLICABLE!>constructor<!>(x: Int)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user