RemoveModifierFix: fix message for 'companion object'

#KT-35604 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-12-21 13:13:37 +09:00
committed by Mikhail Glukhikh
parent 3dc58bc995
commit 716036a000
8 changed files with 49 additions and 0 deletions
@@ -0,0 +1,6 @@
// "Make 'companion object' not open" "true"
class A {
<caret>open companion object {
fun a(): Int = 1
}
}
@@ -0,0 +1,6 @@
// "Make 'companion object' not open" "true"
class A {
companion object {
fun a(): Int = 1
}
}
@@ -0,0 +1,6 @@
// "Make 'Foo' not open" "true"
class A {
<caret>open companion object Foo {
fun a(): Int = 1
}
}
@@ -0,0 +1,6 @@
// "Make 'Foo' not open" "true"
class A {
companion object Foo {
fun a(): Int = 1
}
}
+4
View File
@@ -0,0 +1,4 @@
// "Make 'Foo' not open" "true"
<caret>open object Foo {
fun a(): Int = 1
}
+4
View File
@@ -0,0 +1,4 @@
// "Make 'Foo' not open" "true"
object Foo {
fun a(): Int = 1
}