KT-31126 JS. Fix super constructor call. Old backend

Primary ordinary -> secondary external
This commit is contained in:
Victor Turansky
2020-04-05 02:15:13 +03:00
committed by Roman
parent 2726f7f5ed
commit 6859e87be1
@@ -235,7 +235,7 @@ public final class ClassInitializerTranslator extends AbstractTranslator {
} }
} }
if (superDescriptor.isPrimary()) { if (superDescriptor.isPrimary() || superDescriptor.getConstructedClass().isExternal()) {
addCallToSuperMethod(arguments, initializer, superCall.getCall().getCallElement()); addCallToSuperMethod(arguments, initializer, superCall.getCall().getCallElement());
} }
else { else {