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
+2
-4
@@ -1,11 +1,9 @@
|
||||
import java.io.File
|
||||
|
||||
internal class C {
|
||||
private fun memberFun(file: File) {
|
||||
}
|
||||
private fun memberFun(file: File) {}
|
||||
|
||||
companion object {
|
||||
@JvmStatic fun main(args: Array<String>) {
|
||||
}
|
||||
@JvmStatic fun main(args: Array<String>) {}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,9 @@
|
||||
class A {
|
||||
|
||||
|
||||
fun foo() {
|
||||
}
|
||||
fun foo() {}
|
||||
|
||||
fun bar() {
|
||||
}
|
||||
fun bar() {}
|
||||
|
||||
|
||||
fun f() {}
|
||||
|
||||
Reference in New Issue
Block a user