Sealed code generation: sealed is considered abstract, correct serialization

A pair of tests provided.
This commit is contained in:
Mikhail Glukhikh
2015-06-17 18:17:30 +03:00
parent 4d2ba3e890
commit 6e2395471d
10 changed files with 72 additions and 6 deletions
@@ -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()) {