FIR IDE: align resolution behavior of super with FE1.0

That is, for a labeled `super`, the keyword should resolve to the super
type and the label should be resolved to the current type.
This commit is contained in:
Tianyu Geng
2021-09-22 13:30:01 -07:00
committed by Space
parent 0d966ec65a
commit d3c91ee9be
6 changed files with 38 additions and 0 deletions
@@ -0,0 +1,8 @@
interface A {
fun a() {}
}
class Foo : A {
fun foo() {
super@F<caret>oo.a()
}
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) class Foo : A
@@ -0,0 +1,8 @@
interface A {
fun a() {}
}
class Foo : A {
fun foo() {
s<caret>uper@Foo.a()
}
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in ROOT) interface A