[FIR] Implement checker for exhaustive when's in expression position
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user