[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
@@ -11,7 +11,7 @@ fun testMixedIfAndWhen() =
else 1
true -> if (true) 42
else println()
else -> if (true) println()
else -> <!INVALID_IF_AS_EXPRESSION!>if<!> (true) println()
}
else println()
@@ -28,4 +28,4 @@ fun testWrappedExpressions() =
}
else {
(((((42)) + 1)))
}
}