AA: take into account type arguments if available
...when computing receiver type for double colon expression
This commit is contained in:
committed by
Space Team
parent
2429d09edd
commit
42e8245007
+13
@@ -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
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: MyInterface<String>::sam
|
||||
receiver:: type: test.pkg.MyInterface<kotlin.String>
|
||||
+13
@@ -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
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: MyInterface<*>::sam
|
||||
receiver:: type: test.pkg.MyInterface<*>
|
||||
Reference in New Issue
Block a user