Add Inspection to remove empty primary constructor #KT-14521 Fixed

This commit is contained in:
Kirill Rakhman
2016-11-01 00:26:53 +01:00
committed by Mikhail Glukhikh
parent ba7f60040a
commit 495dd3641c
14 changed files with 120 additions and 0 deletions
@@ -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>