Fix 298 for real this time?
All checks were successful
Build and Test with Maven / Build-and-test-with-Maven (push) Successful in 1m3s

This commit is contained in:
Daniel Holle 2024-03-27 14:39:43 +01:00
parent b70e435120
commit 82b4450857
2 changed files with 3 additions and 1 deletions

View File

@ -906,6 +906,7 @@ public class RuleSet implements IRuleSet{
var fiArgs = fc.getFunctionalInterfaceTypeArguments(refType);
var retType = fiArgs.getFirst();
System.out.println(lhsType.getName());
var lhsArgs = fc.getFunctionalInterfaceTypeArguments(lhsType);
var lhsRet = lhsArgs.getFirst();

View File

@ -613,6 +613,8 @@ implements IFiniteClosure {
@Override
public List<UnifyType> getFunctionalInterfaceTypeArguments(UnifyType t) {
if (t instanceof FunNType) return Arrays.asList(t.getTypeParams().get()).reversed();
var clazz = compiler.getClass(new JavaClassName(t.getName()));
var intfMethod = clazz.getMethods().stream().filter(m -> Modifier.isAbstract(m.modifier)).findFirst().orElseThrow();
@ -630,7 +632,6 @@ implements IFiniteClosure {
i += 1;
}
System.out.println(args);
return args;
}