Find Usages: Fix reference check for the case of multiple resolve results

This commit is contained in:
Alexey Sedunov
2014-10-09 16:14:31 +04:00
parent f0a0df94b5
commit 0d220c68ea
9 changed files with 69 additions and 2 deletions
@@ -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