FIR checker: report AMBIGUOUS_SUPER

This commit is contained in:
Tianyu Geng
2021-07-19 15:13:39 -07:00
committed by Ivan Kochurkin
parent 5b9ce7e823
commit 06ee84f809
20 changed files with 59 additions and 27 deletions
@@ -41,7 +41,7 @@ class ManySupers: Foo2(), B {
fun foo() {
super<Foo2>.test()
super<<!QUALIFIED_SUPERTYPE_EXTENDED_BY_OTHER_SUPERTYPE!>B<!>>.test()
super.<!UNRESOLVED_REFERENCE!>test<!>()
<!AMBIGUOUS_SUPER!>super<!>.test()
}
}
@@ -49,7 +49,7 @@ class ManySupers2: Foo2(), C {
fun foo() {
super<Foo2>.test()
super<C>.test()
super.<!UNRESOLVED_REFERENCE!>test<!>()
<!AMBIGUOUS_SUPER!>super<!>.test()
}
}
@@ -57,6 +57,6 @@ class ManySupers2: Foo2(), C {
fun foo() {
super<Bar2>.test()
super<C>.test()
super.<!UNRESOLVED_REFERENCE!>test<!>()
<!AMBIGUOUS_SUPER!>super<!>.test()
}
}