Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
HoshinoTented committed Jan 20, 2025
1 parent 330ff17 commit bbf7086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/src/main/java/org/aya/resolve/salt/Desalt.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ public final class Desalt implements PosedUnaryOperator<Expr> {
if (pat.term().data() instanceof Pattern.BindLike bindLike) {
var bind = bindLike.toLocalVar(pat.term().sourcePos());

Check warning on line 88 in base/src/main/java/org/aya/resolve/salt/Desalt.java

View check run for this annotation

Codecov / codecov/patch

base/src/main/java/org/aya/resolve/salt/Desalt.java#L88

Added line #L88 was not covered by tests
// we need fresh bind, since [bind] may be used in the body.
return LocalVar.generate(bind.name(), bind.definition());
return LocalVar.generate(bind.name(), SourcePos.NONE);

Check warning on line 90 in base/src/main/java/org/aya/resolve/salt/Desalt.java

View check run for this annotation

Codecov / codecov/patch

base/src/main/java/org/aya/resolve/salt/Desalt.java#L90

Added line #L90 was not covered by tests
} else {
return LocalVar.generate("IrrefutableLam" + idx, pat.term().sourcePos());
return LocalVar.generate("IrrefutableLam" + idx, SourcePos.NONE);
}
});

Expand Down

0 comments on commit bbf7086

Please sign in to comment.