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
+12
-24
@@ -1,51 +1,39 @@
|
||||
internal class Outer {
|
||||
private inner class Inner1() {
|
||||
|
||||
constructor(a: Int) : this() {
|
||||
}
|
||||
constructor(a: Int) : this() {}
|
||||
|
||||
protected constructor(c: Char) : this() {
|
||||
}
|
||||
protected constructor(c: Char) : this() {}
|
||||
|
||||
private constructor(b: Boolean) : this() {
|
||||
}
|
||||
private constructor(b: Boolean) : this() {}
|
||||
}
|
||||
|
||||
protected inner class Inner2() {
|
||||
|
||||
constructor(a: Int) : this() {
|
||||
}
|
||||
constructor(a: Int) : this() {}
|
||||
|
||||
protected constructor(c: Char) : this() {
|
||||
}
|
||||
protected constructor(c: Char) : this() {}
|
||||
|
||||
private constructor(b: Boolean) : this() {
|
||||
}
|
||||
private constructor(b: Boolean) : this() {}
|
||||
|
||||
}
|
||||
|
||||
internal inner class Inner3() {
|
||||
|
||||
constructor(a: Int) : this() {
|
||||
}
|
||||
constructor(a: Int) : this() {}
|
||||
|
||||
protected constructor(c: Char) : this() {
|
||||
}
|
||||
protected constructor(c: Char) : this() {}
|
||||
|
||||
private constructor(b: Boolean) : this() {
|
||||
}
|
||||
private constructor(b: Boolean) : this() {}
|
||||
}
|
||||
|
||||
inner class Inner4() {
|
||||
|
||||
constructor(a: Int) : this() {
|
||||
}
|
||||
constructor(a: Int) : this() {}
|
||||
|
||||
protected constructor(c: Char) : this() {
|
||||
}
|
||||
protected constructor(c: Char) : this() {}
|
||||
|
||||
private constructor(b: Boolean) : this() {
|
||||
}
|
||||
private constructor(b: Boolean) : this() {}
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
|
||||
Reference in New Issue
Block a user