Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/diagnostics/explicitDelegationCallRequired.kt
T
2023-10-11 08:54:09 +00:00

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()
}