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) {
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user