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
@@ -1,6 +1,5 @@
internal class F {
fun f1(p1: Int, p2: Int, p3: Int, p4: Int, vararg p5: Int) {
}
fun f1(p1: Int, p2: Int, p3: Int, p4: Int, vararg p5: Int) {}
fun f2(array: IntArray) {
f1(1, 2,
+3 -7
View File
@@ -1,14 +1,10 @@
internal class F {
fun f1() {
}
fun f1() {}
fun f2() {
}
fun f2() {}
var i: Int? = 0
fun f3() {
}
fun f3() {}
}
@@ -4,8 +4,7 @@ internal class F {
/*c2*/
fun f1() {
}
fun f1() {}
//c3
@@ -13,13 +12,10 @@ internal class F {
//c4
fun f2() {
}
fun f2() {}
var i: Int? = 0
fun f3() {
}
fun f3() {}
//c5
}
@@ -6,14 +6,11 @@ internal class F {
//c4
fun f2() {
}
fun f2() {}
fun f3() {
}
fun f3() {}
fun f4() {
}
fun f4() {}
companion object {
@@ -21,15 +18,12 @@ internal class F {
/*c2*/
fun f1() {
}
fun f1() {}
var i: Int? = 0
//c5
fun f5() {
}
fun f5() {}
}
//c6
@@ -4,8 +4,7 @@ internal object F {
/*c2*/
fun f1() {
}
fun f1() {}
//c3
@@ -13,13 +12,10 @@ internal object F {
//c4
fun f2() {
}
fun f2() {}
var i: Int? = 0
fun f3() {
}
fun f3() {}
//c5
}