Fix parameter types in super call

This commit is contained in:
Victorious3 2023-01-24 12:27:30 +01:00
parent 8250f0cb51
commit 9dca8ccdaa

View File

@ -306,8 +306,8 @@ public class StatementToTargetExpression implements StatementVisitor {
public void visit(SuperCall superCall) { public void visit(SuperCall superCall) {
var aSuper = converter.convert(converter.currentClass.getSuperClass()); var aSuper = converter.convert(converter.currentClass.getSuperClass());
var type = converter.convert(superCall.getType()); var type = converter.convert(superCall.getType());
var parameters = superCall.signature.stream().map(converter::convert).toList(); var parameters = superCall.arglist.getArguments().stream().map(par -> converter.convert(par.getType())).toList();
parameters = parameters.subList(0, parameters.size() - 1);
result = new TargetMethodCall( result = new TargetMethodCall(
type, type, type, type,
parameters, parameters,