FIR: Rework delegation constructor calls resolution

Make it work independently of being called for inner class (as in FE 1.0)
This commit is contained in:
Denis Zharkov
2020-07-30 15:35:35 +03:00
parent db93b9052b
commit a5a93d00a7
27 changed files with 181 additions and 169 deletions
@@ -25,7 +25,7 @@ class E<T> {
// selection of the proper constructor
// but a type mismatch for the first
// argument
constructor(e: T, i: Int) : <!CYCLIC_CONSTRUCTOR_DELEGATION_CALL!>this<!>(i, 10) {}
constructor(e: T, i: Int) : <!INAPPLICABLE_CANDIDATE!>this<!>(i, 10) {}
}
class I<T> {
@@ -33,7 +33,7 @@ class I<T> {
// selection of the proper constructor
// but a type mismatch for the first
// argument
constructor(e: T, i: Int) : <!CYCLIC_CONSTRUCTOR_DELEGATION_CALL!>this<!>(i, 10)
constructor(e: T, i: Int) : <!INAPPLICABLE_CANDIDATE!>this<!>(i, 10)
}
class J<T> {
@@ -64,4 +64,4 @@ class M {
class U : M {
<!INAPPLICABLE_CANDIDATE!>constructor()<!>
}
}