Sealed code generation: sealed is considered abstract, correct serialization
A pair of tests provided.
This commit is contained in:
@@ -132,7 +132,7 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
|
||||
|
||||
if (myClass instanceof JetClass) {
|
||||
JetClass jetClass = (JetClass) myClass;
|
||||
if (jetClass.hasModifier(JetTokens.ABSTRACT_KEYWORD)) {
|
||||
if (jetClass.hasModifier(JetTokens.ABSTRACT_KEYWORD) || jetClass.isSealed()) {
|
||||
isAbstract = true;
|
||||
}
|
||||
if (jetClass.isInterface()) {
|
||||
|
||||
Reference in New Issue
Block a user