Skip to content

Commit

Permalink
Fix some BiFunction cases not compiling properly
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhebben committed Oct 25, 2024
1 parent 30770bc commit 2bc37d4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ private void addDefaultFunctions() {
registerFunction("TTToT", BinaryOperator.class, "apply", new TypeParameter[]{t}, tType, tType, tType);
registerFunction("TToT", UnaryOperator.class, "apply", new TypeParameter[]{t}, tType, tType);
registerFunction("TTToInt", Comparator.class, "compare", new TypeParameter[]{t}, BasicTypeID.INT, new GenericTypeID(t), tType);
registerFunction("TUToT", BiFunction.class, "apply", new TypeParameter[]{t, u}, tType, tType, uType);
registerFunction("TUToU", BiFunction.class, "apply", new TypeParameter[]{t, u}, uType, tType, uType);
}

private void registerFunction(String id, Class<?> clazz, String methodName, TypeParameter[] typeParameters, TypeID returnType, TypeID... parameterTypes) {
Expand Down

0 comments on commit 2bc37d4

Please sign in to comment.