From 2ae546576c778a2e6916ecd21f156bb0330473bc Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Thu, 22 Jul 2021 13:54:49 +0300 Subject: [PATCH] [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 --- compiler/testData/diagnostics/tests/when/DuplicatedLabels.kt | 2 +- compiler/testData/diagnostics/tests/when/When.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/testData/diagnostics/tests/when/DuplicatedLabels.kt b/compiler/testData/diagnostics/tests/when/DuplicatedLabels.kt index ffddb756eb7..e41d2c4a1dd 100644 --- a/compiler/testData/diagnostics/tests/when/DuplicatedLabels.kt +++ b/compiler/testData/diagnostics/tests/when/DuplicatedLabels.kt @@ -20,7 +20,7 @@ fun first(arg: Int) = when (arg) { 1 -> 6 2 -> 7 // Error should be here: see KT-11971 - four -> 8 + four -> 8 else -> 0 } diff --git a/compiler/testData/diagnostics/tests/when/When.kt b/compiler/testData/diagnostics/tests/when/When.kt index a04cb887c8f..e73872c2a5f 100644 --- a/compiler/testData/diagnostics/tests/when/When.kt +++ b/compiler/testData/diagnostics/tests/when/When.kt @@ -43,7 +43,7 @@ fun test() { s -> 1 "" -> 1 x -> 1 - 1 -> 1 + 1 -> 1 } val z = 1