Skip to content

Commit

Permalink
Use Constr.is_proj for checking projections (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross authored Sep 19, 2023
1 parent b1d8025 commit f7955ba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Rewriter/Language/Reify.v
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,10 @@ Module Compilers.
=> do_red ()
| Constr.Unsafe.Case _ _ _ _ _
=> do_red ()
| Constr.Unsafe.Proj _ _
=> do_red ()
| _ => false
| _ (* use ifs for more version-compatibility as the kind representation changes *)
=> if Constr.is_proj parameter_type
then do_red ()
else false
end.

(* f, f_ty, arg *)
Expand Down

0 comments on commit f7955ba

Please sign in to comment.