Add / preserve semicolon after empty companion object #KT-21179 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
45e5cc190f
commit
0eec3ef1f8
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
companion object <caret>{}
|
||||
|
||||
fun test() {}
|
||||
}
|
||||
|
||||
fun Test.Companion.foo() {}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
companion object
|
||||
|
||||
fun test() {}
|
||||
}
|
||||
|
||||
fun Test.Companion.foo() {}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
companion object <caret>{}
|
||||
|
||||
init {}
|
||||
}
|
||||
|
||||
fun Test.Companion.foo() {}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
companion object;<caret>
|
||||
|
||||
init {}
|
||||
}
|
||||
|
||||
fun Test.Companion.foo() {}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
companion object <caret>{}
|
||||
|
||||
private fun test() {}
|
||||
}
|
||||
|
||||
fun Test.Companion.foo() {}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
companion object;<caret>
|
||||
|
||||
private fun test() {}
|
||||
}
|
||||
|
||||
fun Test.Companion.foo() {}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
companion object <caret>{}
|
||||
|
||||
val bar = 1
|
||||
}
|
||||
|
||||
fun Test.Companion.foo() {}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
companion object
|
||||
|
||||
val bar = 1
|
||||
}
|
||||
|
||||
fun Test.Companion.foo() {}
|
||||
@@ -0,0 +1,5 @@
|
||||
class Test {
|
||||
companion object <caret>{}
|
||||
}
|
||||
|
||||
fun Test.Companion.foo() {}
|
||||
@@ -0,0 +1,5 @@
|
||||
class Test {
|
||||
companion object
|
||||
}
|
||||
|
||||
fun Test.Companion.foo() {}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
companion object Foo <caret>{}
|
||||
|
||||
inline fun test() {}
|
||||
}
|
||||
|
||||
fun Test.Foo.foo() {}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
companion object Foo
|
||||
|
||||
inline fun test() {}
|
||||
}
|
||||
|
||||
fun Test.Foo.foo() {}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
companion object <caret>{};
|
||||
|
||||
inline fun test() {}
|
||||
}
|
||||
|
||||
fun Test.Companion.foo() {}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
companion object;
|
||||
|
||||
inline fun test() {}
|
||||
}
|
||||
|
||||
fun Test.Companion.foo() {}
|
||||
Reference in New Issue
Block a user