[FE 1.0] Update DUPLICATE_LABEL_IN_WHEN testdata

New diagnostics started to report because in 1.6 we assume that
  `1` is typed const of type Int instead of literal const
This commit is contained in:
Dmitriy Novozhilov
2021-07-22 13:54:49 +03:00
committed by Mikhael Bogdanov
parent b1d17cfd7b
commit 2ae546576c
2 changed files with 2 additions and 2 deletions
@@ -20,7 +20,7 @@ fun first(arg: Int) = when (arg) {
<!DUPLICATE_LABEL_IN_WHEN!>1<!> -> 6
<!DUPLICATE_LABEL_IN_WHEN!>2<!> -> 7
// Error should be here: see KT-11971
four -> 8
<!DUPLICATE_LABEL_IN_WHEN!>four<!> -> 8
else -> 0
}
+1 -1
View File
@@ -43,7 +43,7 @@ fun test() {
<!INCOMPATIBLE_TYPES!>s<!> -> 1
<!DUPLICATE_LABEL_IN_WHEN, INCOMPATIBLE_TYPES!>""<!> -> 1
x -> 1
1 -> 1
<!DUPLICATE_LABEL_IN_WHEN!>1<!> -> 1
}
val z = 1