Remove unused function parameter: delete empty constructor accurately
So #KT-22221 Fixed Fixes also some quick-fix tests
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// "Remove parameter 'x'" "true"
|
||||
|
||||
fun foo() {
|
||||
X("")
|
||||
}
|
||||
class X constructor(<caret>x: String)
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Remove parameter 'x'" "true"
|
||||
|
||||
fun foo() {
|
||||
X()
|
||||
}
|
||||
class X
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// "Remove parameter 'x'" "true"
|
||||
|
||||
class X internal constructor(<caret>x: String)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// "Remove parameter 'x'" "true"
|
||||
|
||||
class X internal constructor()
|
||||
Reference in New Issue
Block a user