Add formatting rule "new line between { and when entry"

This commit is contained in:
Mikhail Glukhikh
2018-08-20 10:53:20 +03:00
parent ef094e78e3
commit 4fd8d3b480
5 changed files with 18 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
fun foo(x: Int) = when (x) {
1 -> 2
3 -> 4
else -> 6
}
+4
View File
@@ -0,0 +1,4 @@
fun foo(x: Int) = when(x) { 1 -> 2
3 -> 4
else -> 6
}