Find Usages: Add tests for enum entries

This commit is contained in:
Alexey Sedunov
2014-11-14 18:10:20 +03:00
parent 432c0bb69e
commit 2ec4494c02
3 changed files with 34 additions and 0 deletions
@@ -0,0 +1,25 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetNamedFunction
// OPTIONS: usages
enum class E {
{
foo(1)
}
open fun <caret>foo(n: Int): Int = n
O
A {
{
foo(1)
}
override fun foo(n: Int): Int = n + 1
}
B {
{
foo(1)
}
override fun foo(n: Int): Int = n + 2
}
}
@@ -0,0 +1,3 @@
Function call (13: 13) foo(1)
Function call (20: 13) foo(1)
Function call (5: 9) foo(1)