18 lines
524 B
Kotlin
Vendored
18 lines
524 B
Kotlin
Vendored
class A(x: Int) {
|
|
constructor(z: String) : this(10)
|
|
}
|
|
|
|
class B : A {
|
|
<!EXPLICIT_DELEGATION_CALL_REQUIRED, NONE_APPLICABLE!>constructor()<!>
|
|
constructor(z: String) : this()
|
|
}
|
|
|
|
<!SUPERTYPE_INITIALIZED_WITHOUT_PRIMARY_CONSTRUCTOR!>class C : A(20) {
|
|
<!EXPLICIT_DELEGATION_CALL_REQUIRED, NONE_APPLICABLE!>constructor()<!>
|
|
constructor(z: String) : this()
|
|
}<!>
|
|
|
|
class D() : A(20) {
|
|
<!NONE_APPLICABLE, PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED!>constructor(x: Int)<!>
|
|
constructor(z: String) : this()
|
|
} |