Add Inspection to remove empty primary constructor #KT-14521 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
ba7f60040a
commit
495dd3641c
@@ -0,0 +1,2 @@
|
||||
org.jetbrains.kotlin.idea.intentions.RemoveEmptyPrimaryConstructorIntention
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
annotation class Ann
|
||||
|
||||
class Foo @Ann constructor()<caret>
|
||||
@@ -0,0 +1 @@
|
||||
class Foo constructor()<caret>
|
||||
@@ -0,0 +1 @@
|
||||
class Foo <caret>
|
||||
@@ -0,0 +1,3 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
class Foo private constructor()<caret>
|
||||
@@ -0,0 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
class Foo()<caret> {
|
||||
constructor(a: Int): this()
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
class Foo()<caret>
|
||||
@@ -0,0 +1 @@
|
||||
class Foo<caret>
|
||||
Reference in New Issue
Block a user