blob: a207c17505f97853de544af42f616894078464a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// WITH_RUNTIME
// ERROR: 'when' expression must be exhaustive, add necessary 'BAR', 'BAZ' branches or 'else' branch instead
// SKIP_ERRORS_AFTER
enum class Entry {
FOO, BAR, BAZ
}
fun test(e: Entry) {
<caret>when (e) {
Entry.FOO -> {}
}
}
|