Skip to content

Commit

Permalink
[ppx] Fix refier construction: better location error
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitrii.Kosarev a.k.a. Kakadu <Dmitrii.Kosarev@pm.me>
  • Loading branch information
Kakadu authored and Dmitrii.Kosarev a.k.a. Kakadu committed Dec 24, 2024
1 parent 962312e commit 684ae81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppx/reify/reify_impl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ let reifier_of_core_type ?(reifier_for_var = Fun.id) ~loc kind =
Exp.apply ~loc (pexp_ident ~loc (Located.mk ~loc (Lident reifier_name))) (Lazy.force args)
| Lident "t" ->
Exp.apply ~loc (pexp_ident ~loc (Located.mk ~loc (Lident reifier_name))) (Lazy.force args)
| _ -> assert false
| _ -> pexp_extension ~loc @@ Location.error_extensionf ~loc "Can't construct reifier "
in
let rec helper typ : expression =
let loc = typ.ptyp_loc in
Expand Down

0 comments on commit 684ae81

Please sign in to comment.