Safe Delete: Skip usages inside of overriding to-be-deleted declarations

#KT-7253 Fixed
This commit is contained in:
Alexey Sedunov
2016-01-12 14:35:55 +03:00
parent 59bacd932a
commit ed8674c0f9
10 changed files with 103 additions and 9 deletions
@@ -0,0 +1,8 @@
class J implements T {
T u;
@Override
public void foo() {
u.foo();
}
}
@@ -0,0 +1,4 @@
class J implements T {
T u;
}
@@ -0,0 +1,9 @@
interface T {
fun <caret>foo()
}
class A(val t: T) : T {
override fun foo() {
t.foo()
}
}
@@ -0,0 +1,5 @@
interface T {
}
class A(val t: T) : T {
}