Remove parentheses after deleting the last unused constructor parameter

So #KT-16636 Fixed
This commit is contained in:
Toshiaki Kameyama
2017-09-29 04:09:22 +03:00
committed by Mikhail Glukhikh
parent 7ade2bb708
commit c5b7d0f0df
10 changed files with 69 additions and 12 deletions
@@ -0,0 +1,3 @@
// "Remove parameter 'a'" "true"
class Foo(<caret>a: String)
@@ -0,0 +1,3 @@
// "Remove parameter 'a'" "true"
class Foo<caret>
@@ -0,0 +1,3 @@
// "Remove parameter 'a'" "true"
class Foo(<caret>a: String, b: String)
@@ -0,0 +1,3 @@
// "Remove parameter 'a'" "true"
class Foo(<caret>b: String)
@@ -1,2 +1,2 @@
// "Safe delete 'property'" "true"
class UnusedPropertyAsConstructorParameter()
class UnusedPropertyAsConstructorParameter<caret>
@@ -0,0 +1,2 @@
// "Safe delete 'property'" "true"
class UnusedPropertyAsConstructorParameter(val <caret>property: String, val foo: String)
@@ -0,0 +1,2 @@
// "Safe delete 'property'" "true"
class UnusedPropertyAsConstructorParameter(<caret>val foo: String)