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
@@ -14,11 +14,9 @@ internal class A {
|
||||
|
||||
private /*it's private*/ val field = 0
|
||||
|
||||
/*it's public*/ fun foo(s: String): Char {
|
||||
}
|
||||
/*it's public*/ fun foo(s: String): Char {}
|
||||
|
||||
protected /*it's protected*/ fun foo(c: Char) {
|
||||
}
|
||||
protected /*it's protected*/ fun foo(c: Char) {}
|
||||
|
||||
companion object {
|
||||
|
||||
|
||||
@@ -16,8 +16,7 @@ internal class B// this constructor will disappear
|
||||
(private val x: Int) // end of constructor body
|
||||
{
|
||||
|
||||
fun foo() {
|
||||
}
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
internal class CtorComment {
|
||||
|
||||
Reference in New Issue
Block a user