[FIR] Report conflicts for constructors of top-level classes

^KT-59880
This commit is contained in:
Nikolay Lunyak
2023-10-10 14:35:39 +03:00
committed by Space Team
parent bc2eb546b4
commit 09436d0480
6 changed files with 20 additions and 33 deletions
@@ -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<!>()
}<!>