Safe Delete: Use actual usage PSI in UsageInfo instead of declaration

#KT-19161 Fixed
This commit is contained in:
Alexey Sedunov
2017-08-11 16:33:42 +03:00
parent 2f556e1bea
commit 1215b2864b
5 changed files with 19 additions and 8 deletions
@@ -0,0 +1,7 @@
package test
fun foo() {
val <caret>x = 1
println(x)
println(x)
}
@@ -0,0 +1 @@
variable test.foo.x has 2 usages that are not safe to delete.
@@ -1 +1 @@
type alias MyString has 1 usage that is not safe to delete.
type alias MyString has 2 usages that are not safe to delete.