[K2] Allow using simple boolean expressions in constant position
Such behavior is not the same as in K1, but it is more consistent. #KT-64400 Fixed
This commit is contained in:
+6
@@ -23951,6 +23951,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compare.kt")
|
||||
public void testCompare() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/const/compare.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constInteraction.kt")
|
||||
public void testConstInteraction() throws Exception {
|
||||
|
||||
+6
@@ -23951,6 +23951,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/const/arrayInAnnotationArgumentType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compare.kt")
|
||||
public void testCompare() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/const/compare.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constInteraction.kt")
|
||||
public void testConstInteraction() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user