[FIR] Implement checker for exhaustive when's in expression position
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ fun t1(x: Int) = when(x) {
|
||||
else -> 1
|
||||
}
|
||||
|
||||
fun t5(x: Int) = when (x) {
|
||||
fun t5(x: Int) = <!NO_ELSE_IN_WHEN!>when<!> (x) {
|
||||
is Int -> 1
|
||||
2 -> 2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user