[FIR] Implement ELSE_MISPLACED_IN_WHEN diagnostics, fix tests
This commit is contained in:
committed by
TeamCityServer
parent
7f4da93cc3
commit
00bc04b3df
@@ -56,6 +56,6 @@ fun fourth(arg: Color) = when (arg) {
|
||||
|
||||
fun fifth(arg: Any?) = when (arg) {
|
||||
is Any -> "Any"
|
||||
else -> ""
|
||||
<!ELSE_MISPLACED_IN_WHEN!>else<!> -> ""
|
||||
else -> null
|
||||
}
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ fun test() {
|
||||
val z = 1
|
||||
|
||||
when (z) {
|
||||
else -> 1
|
||||
<!ELSE_MISPLACED_IN_WHEN!>else<!> -> 1
|
||||
1 -> 2
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user