Do not force new line in body for empty functions and function expressions (KT-10828)
#KT-10828 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
268d55104c
commit
2841931ffa
+5
-12
@@ -1,19 +1,13 @@
|
||||
// !openByDefault: true
|
||||
|
||||
internal open class A {
|
||||
internal open fun foo1() {
|
||||
}
|
||||
|
||||
private fun foo2() {
|
||||
}
|
||||
|
||||
fun foo3() {
|
||||
}
|
||||
internal open fun foo1() {}
|
||||
private fun foo2() {}
|
||||
fun foo3() {}
|
||||
}
|
||||
|
||||
internal class B {
|
||||
fun foo() {
|
||||
}
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
internal abstract class C {
|
||||
@@ -25,8 +19,7 @@ internal interface I {
|
||||
}
|
||||
|
||||
internal open class D : I {
|
||||
override fun foo() {
|
||||
}
|
||||
override fun foo() {}
|
||||
}
|
||||
|
||||
internal enum class E {
|
||||
|
||||
Reference in New Issue
Block a user