[FE 1.0] Report DUPLICATE_LABEL_IN_WHEN on proper branches

^KT-50385 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-12-19 22:34:09 +03:00
committed by teamcity
parent d9a3dd09ea
commit eb753eac83
9 changed files with 185 additions and 7 deletions
+2 -2
View File
@@ -40,8 +40,8 @@ fun test() {
val s = "";
when (x) {
<!INCOMPATIBLE_TYPES!>s<!> -> 1
<!DUPLICATE_LABEL_IN_WHEN, INCOMPATIBLE_TYPES!>""<!> -> 1
<!DUPLICATE_LABEL_IN_WHEN, INCOMPATIBLE_TYPES!>s<!> -> 1
<!INCOMPATIBLE_TYPES!>""<!> -> 1
x -> 1
1 -> 1
}