[FIR] Implement ELSE_MISPLACED_IN_WHEN diagnostics, fix tests
This commit is contained in:
committed by
TeamCityServer
parent
7f4da93cc3
commit
00bc04b3df
@@ -6,7 +6,7 @@ fun foo() : Int {
|
||||
var z = 0
|
||||
when(d) {
|
||||
5, 3 -> z++
|
||||
else -> { z = -1000 }
|
||||
<!ELSE_MISPLACED_IN_WHEN!>else<!> -> { z = -1000 }
|
||||
return z -> 34
|
||||
}
|
||||
}
|
||||
@@ -23,4 +23,4 @@ fun fff(): Int {
|
||||
return 34
|
||||
}
|
||||
|
||||
fun bar(): Int = 8
|
||||
fun bar(): Int = 8
|
||||
|
||||
Reference in New Issue
Block a user