blob: 9119cad33954d087f2fd1e3d26bd81338d63f11b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// ERROR: 'when' expression must be exhaustive, add necessary 'false' branch or 'else' branch instead
// SKIP_ERRORS_AFTER
// AFTER-WARNING: The expression is unused
// AFTER-WARNING: The expression is unused
fun foo(i : Int) {
<caret>when (0 == i) {
true -> 1
true -> 2
}
}
|