[FIR] Report conflicts for constructors of top-level classes
^KT-59880
This commit is contained in:
committed by
Space Team
parent
bc2eb546b4
commit
09436d0480
+2
-2
@@ -7,8 +7,8 @@ class B : A {
|
||||
constructor(z: String) : this()
|
||||
}
|
||||
|
||||
<!SUPERTYPE_INITIALIZED_WITHOUT_PRIMARY_CONSTRUCTOR!>class C : A(20) {
|
||||
<!EXPLICIT_DELEGATION_CALL_REQUIRED!>constructor()<!>
|
||||
<!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<!>()
|
||||
}<!>
|
||||
|
||||
|
||||
+2
-2
@@ -6,6 +6,6 @@ class D : <!NO_VALUE_FOR_PARAMETER, SUPERTYPE_NOT_INITIALIZED!>C<!>
|
||||
class E : C(10)
|
||||
class F() : C(10)
|
||||
|
||||
<!SUPERTYPE_INITIALIZED_WITHOUT_PRIMARY_CONSTRUCTOR!>class G : C(10) {
|
||||
constructor() : super(1)
|
||||
<!SUPERTYPE_INITIALIZED_WITHOUT_PRIMARY_CONSTRUCTOR!>class <!CONFLICTING_OVERLOADS!>G<!> : C(10) {
|
||||
<!CONFLICTING_OVERLOADS!>constructor()<!> : super(1)
|
||||
}<!>
|
||||
|
||||
Reference in New Issue
Block a user