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:
committed by
Ilya Kirillov
parent
a487e91124
commit
c10879be43
@@ -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
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
interface A {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
interface B {
|
||||
fun bar() {}
|
||||
}
|
||||
|
||||
class C : A, B {
|
||||
fun test() {
|
||||
<expr>super</expr>.unresolved()
|
||||
}
|
||||
}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
expression: super
|
||||
type: (A&B)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
fun test() {
|
||||
<expr>super</expr>.unresolved()
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: super
|
||||
type: kotlin.Any
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
interface A {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
class B : A {
|
||||
fun test() {
|
||||
<expr>super</expr>.unresolved()
|
||||
}
|
||||
}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
expression: super
|
||||
type: A
|
||||
Reference in New Issue
Block a user