Change Signature: Add/remove constructor keyword on primary constructor when changing modifier list
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class C1 protected (val x: Any) {}
|
||||
class C1 protected constructor(val x: Any) {}
|
||||
|
||||
fun f() {
|
||||
val c = C1(12);
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
class C1 protected (){}
|
||||
class C1 protected constructor(){}
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
class X private constructor()
|
||||
+1
@@ -0,0 +1 @@
|
||||
class <caret>X
|
||||
+1
@@ -0,0 +1 @@
|
||||
class X (n: Int)
|
||||
+1
@@ -0,0 +1 @@
|
||||
class <caret>X private constructor(n: Int)
|
||||
Reference in New Issue
Block a user