Formatting: omit blank lines between 'when' and left brace. Test is included.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
fun f(x: Any): Int {
|
||||
return when (x)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
is Int->1
|
||||
else->0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun f(x: Any): Int {
|
||||
return when (x)
|
||||
{
|
||||
is Int -> 1
|
||||
else -> 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user