blob: 6d22608b7d340e0cb0de6191e51da3a352fa4f0a (
plain)
1
2
3
4
5
6
7
8
9
|
// 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) {
if (0 == i) 1
else if (0 == i) 2
}
|