Exhaustive whens without else and 'Nothing' as the result are considered 'implicit exhaustive'
This commit is contained in:
committed by
Mikhail Glukhikh
parent
d62d7dd84f
commit
b93894953d
@@ -13,8 +13,8 @@ import enum.HappyEnum
|
||||
import enum.HappyEnum.*
|
||||
|
||||
fun f(e: HappyEnum) {
|
||||
when (e) {
|
||||
<!DEBUG_INFO_IMPLICIT_EXHAUSTIVE!>when (e) {
|
||||
CASE1 -> throw UnsupportedOperationException() // unresolved reference
|
||||
CASE2 -> throw UnsupportedOperationException() // unresolved references
|
||||
}
|
||||
}<!>
|
||||
}
|
||||
Reference in New Issue
Block a user