Minor: remove braces is now applicable for the whole loop or when entry

This commit is contained in:
Mikhail Glukhikh
2016-09-08 18:53:37 +03:00
parent cf2839eb9a
commit cbc7f72f15
6 changed files with 59 additions and 14 deletions
@@ -0,0 +1,7 @@
fun foo() {
when (1) {
else<caret> -> {
foo()
}
}
}
@@ -0,0 +1,5 @@
fun foo() {
when (1) {
else -> foo()
}
}
@@ -0,0 +1,7 @@
fun <T> doSomething(a: T) {}
fun foo() {
<caret>while (true) {
doSomething("test")
}
}
@@ -0,0 +1,5 @@
fun <T> doSomething(a: T) {}
fun foo() {
while (true) doSomething("test")
}