Formatter: improve indentation rules for when entries
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user