K1: Add test for compatibility check of Enum.entries
Basically, the test checks that adding Enum.entries feature doesn't break the existing code where it clashes with the user-defined "entries" declaration; it's better to have a black-box test to be sure that the compiler doesn't invoke something different at runtime The test covers KT-53153 and KT-56587 Merge-request: KT-MR-9798 Merged-by: Michail Zarečenskij <Mikhail.Zarechenskiy@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
25f2c513f6
commit
6d7dc45ce6
+5
@@ -13366,6 +13366,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/enum/enumEntries.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumEntriesCompatibilityCheck.kt")
|
||||
public void ignoreEnumEntriesCompatibilityCheck() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/enum/enumEntriesCompatibilityCheck.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumEntriesInCompanion.kt")
|
||||
public void ignoreEnumEntriesInCompanion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/enum/enumEntriesInCompanion.kt");
|
||||
|
||||
Reference in New Issue
Block a user