This commit is contained in:
Juraj Kirchheim
2018-07-26 12:57:08 +02:00

View File

@@ -63,7 +63,9 @@ class ClassBuilder {
if (cl.constructor != null) { if (cl.constructor != null) {
try { try {
var ctor = cl.constructor.get(); var ctor = cl.constructor.get();
var func = Context.getTypedExpr(ctor.expr()).getFunction().sure(); var ctorExpr = ctor.expr();
if (ctorExpr == null) throw 'Super constructor has no expression';
var func = Context.getTypedExpr(ctorExpr).getFunction().sure();
for (arg in func.args) //this is to deal with type parameter substitutions for (arg in func.args) //this is to deal with type parameter substitutions
arg.type = null; arg.type = null;
@@ -196,4 +198,4 @@ class ClassBuilder {
p(builder); p(builder);
return builder.export(verbose); return builder.export(verbose);
} }
} }