AA: take into account type arguments if available

...when computing receiver type for double colon expression
This commit is contained in:
Jinseong Jeon
2024-01-22 12:48:39 -08:00
committed by Space Team
parent 2429d09edd
commit 42e8245007
9 changed files with 82 additions and 2 deletions
@@ -0,0 +1,13 @@
// FILE: MyInterface.kt
package test.pkg
interface MyInterface<T> {
fun sam(): T
}
// FILE: main.kt
import test.pkg.MyInterface
fun test() = MyInterface<String>:<caret>:sam
@@ -0,0 +1,2 @@
expression: MyInterface<String>::sam
receiver:: type: test.pkg.MyInterface<kotlin.String>
@@ -0,0 +1,13 @@
// FILE: MyInterface.kt
package test.pkg
interface MyInterface<T> {
fun sam(): T
}
// FILE: main.kt
import test.pkg.MyInterface
fun test() = MyInterface<*>:<caret>:sam
@@ -0,0 +1,2 @@
expression: MyInterface<*>::sam
receiver:: type: test.pkg.MyInterface<*>