Remove unused function parameter: delete empty constructor accurately

So #KT-22221 Fixed
Fixes also some quick-fix tests
This commit is contained in:
Mikhail Glukhikh
2018-01-18 17:10:15 +03:00
parent c4ef95dbf7
commit ee3f89df87
6 changed files with 46 additions and 24 deletions
@@ -0,0 +1,6 @@
// "Remove parameter 'x'" "true"
fun foo() {
X("")
}
class X constructor(<caret>x: String)
@@ -0,0 +1,6 @@
// "Remove parameter 'x'" "true"
fun foo() {
X()
}
class X
@@ -0,0 +1,3 @@
// "Remove parameter 'x'" "true"
class X internal constructor(<caret>x: String)
@@ -0,0 +1,3 @@
// "Remove parameter 'x'" "true"
class X internal constructor()