Browse Source

Fix Expression Visitor using wrong typeParameter list

kindlich 4 years ago
parent
commit
f1fcb91619
No known key found for this signature in database

+ 1
- 1
JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/JavaExpressionVisitor.java View File

@@ -405,7 +405,7 @@ public class JavaExpressionVisitor implements ExpressionVisitor<Void>, JavaNativ
405 405
 			JavaMethod methodInfo = context.getJavaMethod(expression.member);
406 406
 
407 407
 			if(methodInfo.compile) {
408
-			    if(expression.member.getHeader().typeParameters.length == expression.arguments.typeArguments.length) {
408
+			    if(typeParameters.size() == expression.arguments.typeArguments.length) {
409 409
                     final JavaTypeExpressionVisitor javaTypeExpressionVisitor = new JavaTypeExpressionVisitor(context);
410 410
                     for(StoredType typeArgument : expression.arguments.typeArguments) {
411 411
                         typeArgument.type.accept(javaWriter, javaTypeExpressionVisitor);

Loading…
Cancel
Save