forked from JavaTX/JavaCompilerCore
Fix parameter types in super call
This commit is contained in:
parent
8250f0cb51
commit
9dca8ccdaa
@ -306,8 +306,8 @@ public class StatementToTargetExpression implements StatementVisitor {
|
||||
public void visit(SuperCall superCall) {
|
||||
var aSuper = converter.convert(converter.currentClass.getSuperClass());
|
||||
var type = converter.convert(superCall.getType());
|
||||
var parameters = superCall.signature.stream().map(converter::convert).toList();
|
||||
parameters = parameters.subList(0, parameters.size() - 1);
|
||||
var parameters = superCall.arglist.getArguments().stream().map(par -> converter.convert(par.getType())).toList();
|
||||
|
||||
result = new TargetMethodCall(
|
||||
type, type,
|
||||
parameters,
|
||||
|
Loading…
Reference in New Issue
Block a user