Skip to content

Commit

Permalink
allow infer proj on grout
Browse files Browse the repository at this point in the history
  • Loading branch information
disconcision committed May 21, 2024
1 parent eb0cb66 commit 6f48f27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/haz3lcore/zipper/Projector.re
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ let update = (ci: option(Info.t), p: t): t =>
let expected_ty =
switch (ci) {
| Some(InfoExp({mode, _}) | InfoPat({mode, _})) => Mode.ty_of(mode)
| _ => Typ.Float
| _ => Typ.Unknown(Internal)
};
Infer({expected_ty: Some(expected_ty)});
};
Expand All @@ -50,6 +50,7 @@ let can_project = (prj: t, p: Piece.t) =>
&& (
switch (p) {
| Tile(t) => t.mold.out == Exp || t.mold.out == Pat
| Grout(_) => true
| _ => false
}
)
Expand Down

0 comments on commit 6f48f27

Please sign in to comment.