Skip to content

Commit

Permalink
Use a version of typeof! that can return Props and not just Types
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross authored Dec 8, 2023
1 parent faf1967 commit d44b656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/Notations.v
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@ Reserved Notation "\ x .. y , t" (at level 200, x binder, y binder, right associ
Reserved Notation "( x | ? y )" (format "( x | ? y )").

Notation "'subst!' y 'for' x 'in' f" := (match y with x => f end) (at level 10, only parsing).
Notation "'typeof!' x" := (match _ as T with T => subst! x : T for _ in T end) (at level 10, only parsing).
Notation "'typeof!' x" := (match x with y => ltac:(let T := type of y in exact T) end) (at level 10, only parsing).

0 comments on commit d44b656

Please sign in to comment.