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
@@ -3,29 +3,24 @@ fun f1() {
}
val p1 = 1
fun f2() {
}
fun f2() {}
fun f3() = 1
val p2 = 1
fun f4() = 1
fun f4() {
}
fun f4() {}
val p3: Int
get() = 1
fun f5() = 1
class OneLine {
fun f1() {
}
fun f1() {}
val p1 = 1
fun f2() {
}
fun f2() {}
fun f3() = 1
@@ -33,8 +28,7 @@ class OneLine {
fun f4() = 1
fun f4() {
}
fun f4() {}
val p3: Int
get() = 1
@@ -43,15 +37,13 @@ class OneLine {
}
class TwoLines {
fun f1() {
}
fun f1() {}
val p1 = 1
fun f2() {
}
fun f2() {}
fun f3() = 1
@@ -63,8 +55,7 @@ class TwoLines {
fun f4() = 1
fun f4() {
}
fun f4() {}
val p3: Int