Formatter: improve indentation rules for when entries

This commit is contained in:
Pavel V. Talanov
2014-01-17 15:45:46 +04:00
parent 7afc9bc30d
commit 03ad7ff49a
3 changed files with 123 additions and 8 deletions
+59
View File
@@ -2,8 +2,67 @@ fun some(x : Any) {
when (x) {
is Int ->
0
3 ->
2
in 0..3 ->
2
else ->
1
}
when (x) {
is Int -> {
0
}
3 -> {
2
}
in 0..3 -> {
2
}
else -> {
1
}
}
when (x) {
is Int ->
{
0
}
3 ->
{
2
}
in 0..3 ->
{
2
}
else ->
{
1
}
}
when (x) {
is
Int
->
{
0
}
3
->
{
2
}
in
0..3
->
{
2
}
else
->
{
1
}
}
}