Safe Delete: Support secondary constructors

This commit is contained in:
Alexey Sedunov
2015-03-18 18:16:38 +03:00
parent cefd8b43a0
commit b45965b290
8 changed files with 67 additions and 16 deletions
@@ -0,0 +1,7 @@
class J extends B {
B b = new B(1);
public J() {
super(1);
}
}
@@ -0,0 +1,23 @@
open class B {
<caret>constructor(a: Int) {
}
constructor(): this(1) {
}
}
open class A: B {
constructor(a: Int): super(a) {
}
}
open class C: B(1) {
}
fun test() {
B(1)
}
@@ -0,0 +1 @@
constructor B has 5 usages that are not safe to delete.