PSI Unifier: Unify references which correspond to the same declaration

#KT-5996 Fixed
This commit is contained in:
Alexey Sedunov
2015-03-13 14:07:50 +03:00
parent bff709da10
commit 40799a0a43
7 changed files with 50 additions and 0 deletions
@@ -0,0 +1,11 @@
trait T {
fun foo(): Int
}
trait U: T
fun test(t: T): Int {
return if (t is U)
<selection>t.foo()</selection> + 1
else t.foo()
}
@@ -0,0 +1,12 @@
trait T {
fun foo(): Int
}
trait U: T
fun test(t: T): Int {
val i = t.foo()
return if (t is U)
i + 1
else i
}