09436d0480
^KT-59880
19 lines
566 B
Kotlin
Vendored
19 lines
566 B
Kotlin
Vendored
open class A(x: Int) {
|
|
constructor(z: String) : this(10)
|
|
}
|
|
|
|
class B : A {
|
|
<!EXPLICIT_DELEGATION_CALL_REQUIRED!>constructor()<!>
|
|
constructor(z: String) : this()
|
|
}
|
|
|
|
<!SUPERTYPE_INITIALIZED_WITHOUT_PRIMARY_CONSTRUCTOR!>class <!CONFLICTING_OVERLOADS!>C<!> : A(20) {
|
|
<!CONFLICTING_OVERLOADS, EXPLICIT_DELEGATION_CALL_REQUIRED!>constructor()<!>
|
|
constructor(z: String) : <!OVERLOAD_RESOLUTION_AMBIGUITY!>this<!>()
|
|
}<!>
|
|
|
|
class D() : A(20) {
|
|
<!PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED!>constructor(x: Int)<!>
|
|
constructor(z: String) : this()
|
|
}
|