'Else' is not required in 'when' if Unit is expected
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
fun foo(x: Int) {
|
||||
when (x) {
|
||||
2 -> {}
|
||||
3 -> {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user