New setting and test: space around arrow inside 'when'
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fun f(x: Any): Int {
|
||||
return when (x) {
|
||||
is Int ->1
|
||||
else->0
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_AROUND_WHEN_ARROW
|
||||
@@ -0,0 +1,8 @@
|
||||
fun f(x: Any): Int {
|
||||
return when (x) {
|
||||
is Int->1
|
||||
else->0
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_AROUND_WHEN_ARROW
|
||||
@@ -0,0 +1,8 @@
|
||||
fun f(x: Any): Int {
|
||||
return when (x) {
|
||||
is Int -> 1
|
||||
else -> 0
|
||||
}
|
||||
}
|
||||
|
||||
// SET_FALSE: SPACE_AROUND_WHEN_ARROW
|
||||
Reference in New Issue
Block a user