Fix 298 for real this time?
All checks were successful
Build and Test with Maven / Build-and-test-with-Maven (push) Successful in 1m3s
All checks were successful
Build and Test with Maven / Build-and-test-with-Maven (push) Successful in 1m3s
This commit is contained in:
parent
b70e435120
commit
82b4450857
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user