[FIR] Correctly detect super type in delegated constructor call

This commit is contained in:
Dmitriy Novozhilov
2020-04-16 17:46:18 +03:00
parent adfd478361
commit 7f02d57d88
56 changed files with 199 additions and 230 deletions
@@ -6,14 +6,14 @@ open class B<T>(x: T, y: T) {
class A0 : B<String?> {
constructor()
constructor(x: String): <!INAPPLICABLE_CANDIDATE!>super<!>(x)
constructor(x: String, y: String): <!INAPPLICABLE_CANDIDATE!>super<!>(x, y)
constructor(x: String): super(x)
constructor(x: String, y: String): super(x, y)
}
class A1<R> : B<R> {
constructor()
constructor(x: R): <!INAPPLICABLE_CANDIDATE!>super<!>(x)
constructor(x: R, y: R): <!INAPPLICABLE_CANDIDATE!>super<!>(x, y)
constructor(x: R): super(x)
constructor(x: R, y: R): super(x, y)
}
class A2<R> {