New setting and test: space around arrow inside 'when'

This commit is contained in:
sayon
2013-08-27 16:22:20 +04:00
parent ec31808dcd
commit f8b280ba57
7 changed files with 37 additions and 4 deletions
+8
View File
@@ -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