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
@@ -6,7 +6,6 @@ class A {
|
||||
list.add(1)
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
}
|
||||
fun bar() {}
|
||||
|
||||
}
|
||||
@@ -8,5 +8,4 @@ fun foo() {
|
||||
list.add(1)
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
}
|
||||
fun bar() {}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import test.JavaParent
|
||||
|
||||
class KotlinChild : JavaParent() {
|
||||
override fun subject() {
|
||||
}
|
||||
override fun subject() {}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
import test.JavaInterface
|
||||
|
||||
class KotlinChild : JavaInterface() {
|
||||
override fun subject(s: String?) {
|
||||
}
|
||||
override fun subject(s: String?) {}
|
||||
}
|
||||
Reference in New Issue
Block a user