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
-5
@@ -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
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user