Add quickfix for missing 'constructor' inside primary ctor

This commit is contained in:
Denis Zharkov
2015-05-12 18:04:27 +03:00
parent a2578d0f46
commit a9c1c3edb6
13 changed files with 133 additions and 1 deletions
@@ -0,0 +1,3 @@
// "Add 'constructor' keyword" "true"
class A private<caret>()
@@ -0,0 +1,3 @@
// "Add 'constructor' keyword" "true"
class A private constructor()
@@ -0,0 +1 @@
class Q private constructor()
@@ -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()
}
}
}
@@ -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()
}
}
}