[FIR] Introduce a feature flag for context-sensitive enum resolution
The feature was previously enabled unconditionally in K2 which triggered a bug when an enum has an entry with the same name as itself. #KT-58897 Fixed #KT-52774
This commit is contained in:
committed by
Space Team
parent
4b643480d6
commit
cf2ef443f4
+6
@@ -35846,6 +35846,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/when/whenOnNothing.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenOverEnumWithSameNameAsEntry.kt")
|
||||
public void testWhenOverEnumWithSameNameAsEntry() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/whenOverEnumWithSameNameAsEntry.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("WhenTypeDisjunctions.kt")
|
||||
public void testWhenTypeDisjunctions() throws Exception {
|
||||
|
||||
+6
@@ -35846,6 +35846,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/when/whenOnNothing.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("whenOverEnumWithSameNameAsEntry.kt")
|
||||
public void testWhenOverEnumWithSameNameAsEntry() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/when/whenOverEnumWithSameNameAsEntry.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("WhenTypeDisjunctions.kt")
|
||||
public void testWhenTypeDisjunctions() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user