FIR IDE: get type of unresovled super

FIR does not provide any type for unresolved super so we manually
synthesize such types for completion to work.
This commit is contained in:
Tianyu Geng
2021-10-11 13:38:11 -07:00
committed by Ilya Kirillov
parent a487e91124
commit c10879be43
10 changed files with 103 additions and 15 deletions
@@ -0,0 +1,9 @@
interface A {
fun foo() {}
}
class B : A {
fun test() {
<expr>super</expr>.foo()
}
}
@@ -0,0 +1,2 @@
expression: super
type: A
@@ -0,0 +1,13 @@
interface A {
fun foo() {}
}
interface B {
fun bar() {}
}
class C : A, B {
fun test() {
<expr>super</expr>.unresolved()
}
}
@@ -0,0 +1,2 @@
expression: super
type: (A&B)
@@ -0,0 +1,5 @@
class Foo {
fun test() {
<expr>super</expr>.unresolved()
}
}
@@ -0,0 +1,2 @@
expression: super
type: kotlin.Any
@@ -0,0 +1,9 @@
interface A {
fun foo() {}
}
class B : A {
fun test() {
<expr>super</expr>.unresolved()
}
}
@@ -0,0 +1,2 @@
expression: super
type: A