Safe Delete: Skip internal usages of class constructors when deleting class itself

#KT-8857 Fixed
This commit is contained in:
Alexey Sedunov
2015-12-08 15:58:20 +03:00
parent f50059a11a
commit a76f43b66c
7 changed files with 38 additions and 3 deletions
@@ -0,0 +1,5 @@
open class <caret>Foo() {
constructor(p: Int) : this()
}
class Bar : Foo(1)
@@ -0,0 +1 @@
class Foo has 1 usage that is not safe to delete.
@@ -0,0 +1,5 @@
class <caret>Foo() {
constructor(p: Int) : this()
}
class Bar
@@ -1 +1 @@
class B has 4 usages that are not safe to delete.
class B has 3 usages that are not safe to delete.