Formatter: left brace formatting for "when" expression and "when" entries

This commit is contained in:
Pavel V. Talanov
2014-01-17 16:47:37 +04:00
parent 03ad7ff49a
commit f65740f2bd
7 changed files with 167 additions and 24 deletions
+8 -16
View File
@@ -24,44 +24,36 @@ fun some(x: Any) {
}
}
when (x) {
is Int ->
{
is Int -> {
0
}
3 ->
{
3 -> {
2
}
in 0..3 ->
{
in 0..3 -> {
2
}
else ->
{
else -> {
1
}
}
when (x) {
is
Int
->
{
-> {
0
}
3
->
{
-> {
2
}
in
0..3
->
{
-> {
2
}
else
->
{
-> {
1
}
}