Find Usages: Fix reference check for the case of multiple resolve results
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetNamedFunction
|
||||
// OPTIONS: usages
|
||||
package server
|
||||
|
||||
fun <caret>foo() {
|
||||
|
||||
}
|
||||
|
||||
fun Int.foo() {
|
||||
|
||||
}
|
||||
|
||||
fun foo(n: Int) {
|
||||
|
||||
}
|
||||
|
||||
val foo: Int
|
||||
@@ -0,0 +1,11 @@
|
||||
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetNamedFunction
|
||||
// OPTIONS: usages
|
||||
package client
|
||||
|
||||
import server.foo
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
foo(1)
|
||||
val t = foo
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Function call (8: 5) foo()
|
||||
Usage in import (5: 15) import server.foo
|
||||
Reference in New Issue
Block a user