Safe Delete: Add test for primary constructor with usages in delegation calls

This commit is contained in:
Alexey Sedunov
2015-03-18 17:59:51 +03:00
parent 83e23aafe5
commit cefd8b43a0
6 changed files with 38 additions and 0 deletions
@@ -0,0 +1,5 @@
class J extends B {
public J() {
super();
}
}
@@ -0,0 +1,11 @@
open class <caret>B() {
constructor(a: Int): this() {
}
}
open class A: B {
constructor(a: Int): super() {
}
}
@@ -0,0 +1 @@
class B has 4 usages that are not safe to delete.