Skip to content

Commit

Permalink
Refactor metric spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
valis committed Oct 4, 2024
1 parent 4bee850 commit 86aaf0d
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,15 @@ private Boolean checkDefCallAndApp(Expression expr1, Expression expr2, boolean c
TypeClassInferenceVariable variable;
FieldCallExpression fieldCall = funNorm.cast(FieldCallExpression.class);
if (fieldCall != null) {
InferenceVariable infVar = fieldCall.getArgument().getInferenceVariable();
while (true) {
funNorm = myNormalCompare ? fieldCall.getArgument().normalize(NormalizationMode.WHNF) : fieldCall.getArgument();
if (funNorm instanceof FieldCallExpression) {
fieldCall = (FieldCallExpression) funNorm;
} else {
break;
}
}
InferenceVariable infVar = funNorm.getInferenceVariable();
variable = infVar instanceof TypeClassInferenceVariable ? (TypeClassInferenceVariable) infVar : null;
} else {
variable = null;
Expand Down

0 comments on commit 86aaf0d

Please sign in to comment.