Formatter: left brace formatting for "when" expression and "when" entries
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user