[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:
committed by
Mikhael Bogdanov
parent
b1d17cfd7b
commit
2ae546576c
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user