KT-29340 Provide effective modality for enum class in IR
* if enum class has abstract members, then it is ABSTRACT * otherwise, if enum class has entries with members, then it is OPEN * otherwise, it is FINAL.
This commit is contained in:
@@ -111,6 +111,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
|
||||
runTest("compiler/testData/ir/irText/classes/enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumClassModality.kt")
|
||||
public void testEnumClassModality() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/classes/enumClassModality.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumWithSecondaryCtor.kt")
|
||||
public void testEnumWithSecondaryCtor() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/classes/enumWithSecondaryCtor.kt");
|
||||
|
||||
Reference in New Issue
Block a user