[FIR] Implement checker for exhaustive when's in expression position

This commit is contained in:
Dmitriy Novozhilov
2021-02-04 15:41:57 +03:00
parent 3f715e671d
commit 8dd9d98129
103 changed files with 919 additions and 617 deletions
@@ -13,7 +13,7 @@
enum class X { A, B }
fun foo(arg: X?): Int {
if (arg != null) {
return when (arg) {
return <!NO_ELSE_IN_WHEN!>when<!> (arg) {
X.B -> 2
}
}