File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1196,7 +1196,10 @@ public Void visitCall(CallExpression expression) {
11961196 break ;
11971197 }
11981198 case FUNCTION_CALL :
1199- javaWriter .invokeInterface (context .getFunctionalInterface (expression .target .type ));
1199+ FunctionTypeID expressionType = (FunctionTypeID ) expression .target .type ;
1200+ JavaMethod functionalInterface = context .getFunctionalInterface (expressionType );
1201+ javaWriter .invokeInterface (functionalInterface );
1202+ handleReturnValue (context .getFunction (expressionType ).getHeader ().getReturnType (), expression .instancedHeader .getReturnType ());
12001203 break ;
12011204 default :
12021205 throw new UnsupportedOperationException ("Unknown builtin: " + builtin );
You can’t perform that action at this time.
0 commit comments