Implement Intention + Inspection to remove empty secondary constructor body #KT-14326 Fixed

This commit is contained in:
Kirill Rakhman
2016-10-31 23:31:06 +01:00
committed by Mikhail Glukhikh
parent 495dd3641c
commit 8a73a1da2c
10 changed files with 100 additions and 0 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.intentions.RemoveEmptySecondaryConstructorBodyIntention
@@ -0,0 +1,7 @@
// IS_APPLICABLE: false
class Foo() {
constructor(a: Int) : this() <caret>{
//comment
}
}
@@ -0,0 +1,4 @@
class Foo() {
constructor(a: Int) : this() <caret>{
}
}
@@ -0,0 +1,3 @@
class Foo() {
constructor(a: Int) : this()<caret>
}