Add quickfix for missing 'constructor' inside primary ctor
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
// "Add 'constructor' keyword" "true"
|
||||
|
||||
class A private<caret>()
|
||||
@@ -0,0 +1,3 @@
|
||||
// "Add 'constructor' keyword" "true"
|
||||
|
||||
class A private constructor()
|
||||
+1
@@ -0,0 +1 @@
|
||||
class Q private constructor()
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Add missing 'constructor' keyword in whole project" "true"
|
||||
|
||||
annotation class Ann(val x: Int = 1)
|
||||
|
||||
class A @Ann(1)private constructor(x: Int) {
|
||||
inner class B() // do not insert here
|
||||
inner class C protected constructor() {
|
||||
fun foo() {
|
||||
@data class Local private constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Add missing 'constructor' keyword in whole project" "true"
|
||||
|
||||
annotation class Ann(val x: Int = 1)
|
||||
|
||||
class A @Ann(1)<caret>private (x: Int) {
|
||||
inner class B() // do not insert here
|
||||
inner class C protected () {
|
||||
fun foo() {
|
||||
@data class Local private()
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
class Q private()
|
||||
Reference in New Issue
Block a user