Find Usages: Skip overriden descriptors which have no corresponding declaration (EA-58371)

This commit is contained in:
Alexey Sedunov
2014-09-01 14:50:18 +04:00
parent f11621615b
commit ebcac73874
4 changed files with 31 additions and 16 deletions
@@ -0,0 +1,13 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetNamedFunction
// OPTIONS: usages, skipImports
open data class A(val a: Int)
class B(b: Int): A(b) {
override fun <caret>copy(b: Int): B = B(b)
}
fun main(a: A) {
a.copy(1)
B(0).copy(1)
}
@@ -0,0 +1 @@
Function call (12: 10) B(0).copy(1)