[FIR] Implement ELSE_MISPLACED_IN_WHEN diagnostics, fix tests
This commit is contained in:
committed by
TeamCityServer
parent
7f4da93cc3
commit
00bc04b3df
+1
-1
@@ -31,7 +31,7 @@ fun t5(x: Int) = <!NO_ELSE_IN_WHEN!>when<!> (x) {
|
||||
}
|
||||
|
||||
fun foo3(x: Int) = when(x) {
|
||||
else -> 1
|
||||
<!ELSE_MISPLACED_IN_WHEN!>else<!> -> 1
|
||||
2 -> 2
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user