Do not force new line in body for empty functions and function expressions (KT-10828)

#KT-10828 Fixed
This commit is contained in:
Nikolay Krasko
2016-12-06 16:39:17 +03:00
committed by Nikolay Krasko
parent 268d55104c
commit 2841931ffa
130 changed files with 334 additions and 575 deletions
+2 -5
View File
@@ -10,11 +10,8 @@ internal class A {
private val d9 = 1.0
private val x = 1 / (1.0 + 0)
fun foo1(d: Double) {
}
fun foo2(d: Double?) {
}
fun foo1(d: Double) {}
fun foo2(d: Double?) {}
fun bar() {
foo1(1.0)
+2 -5
View File
@@ -10,11 +10,8 @@ internal class A {
private val f9 = 1f
private val f10 = 1f
fun foo1(f: Float) {
}
fun foo2(f: Float?) {
}
fun foo1(f: Float) {}
fun foo2(f: Float?) {}
fun bar() {
foo1(1f)
+2 -5
View File
@@ -8,11 +8,8 @@ internal class A {
private val l7: Long = +1
private val l8 = +1L
fun foo1(l: Long) {
}
fun foo2(l: Long?) {
}
fun foo1(l: Long) {}
fun foo2(l: Long?) {}
fun bar() {
foo1(1)