LC: rework modality of enum class
It is abstract if it has abstract member. It is final if it doesn't have enum entries that need subclass. Otherwise, it is open (i.e., no modifier) ^KT-57567 Fixed
This commit is contained in:
committed by
Ilya Kirillov
parent
7930885131
commit
7f1424737e
@@ -75,7 +75,7 @@ public abstract class KotlinLightClassStructureTest extends KotlinAsJavaTestBase
|
||||
}
|
||||
|
||||
public void testEnum() {
|
||||
checkModifiers("test.Enum", PUBLIC, ENUM);
|
||||
checkModifiers("test.Enum", PUBLIC, FINAL, ENUM);
|
||||
}
|
||||
|
||||
public void testTrait() {
|
||||
|
||||
Reference in New Issue
Block a user