Skip to content

Commit

Permalink
synth: whnf more
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Jan 6, 2023
1 parent b0ae994 commit 0a999f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions base/src/main/java/org/aya/tyck/error/HoleProblem.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ record IllTypedError(
) implements HoleProblem {
@Override public @NotNull Doc describe(@NotNull PrettierOptions options) {
return Doc.vcat(
Doc.english("The meta (denoted ?) is supposed to satisfy"),
Doc.english("The meta (denoted ? below) is supposed to satisfy:"),
Doc.par(1, result.toDoc(options)),
Doc.english("However, the solution below does not have the same type:"),
Doc.english("However, the solution below does not seem so:"),
Doc.par(1, solution.toDoc(options))
);
}
Expand Down
2 changes: 1 addition & 1 deletion base/src/main/java/org/aya/tyck/unify/Unifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public Unifier(
needUnify = false;
}
case MetaInfo.AnyType() -> {
var synthesize = checker.synthesizer().synthesize(preRhs);
var synthesize = checker.synthesizer().tryPress(preRhs);
if (!(synthesize instanceof SortTerm)) {
reporter.report(new HoleProblem.IllTypedError(lhs, meta.info, preRhs));
return null;
Expand Down

0 comments on commit 0a999f8

Please sign in to comment.