Skip to content

Commit 63e23e4

Browse files
committed
Fix constructor instead of ident
1 parent ed5a59e commit 63e23e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ppx_deriving_qcheck/ppx_deriving_qcheck.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ let gen ~loc ?(env = TypeGen.empty) lg =
5858
match lg with
5959
| Lident s ->
6060
Option.value ~default:(name s |> A.evar) @@ TypeGen.find_opt s env
61-
| Ldot (lg, s) -> A.(pexp_construct (Located.mk @@ Ldot (lg, name s)) None)
61+
| Ldot (lg, s) -> A.(pexp_ident (Located.mk @@ Ldot (lg, name s)))
6262
| Lapply (_, _) -> raise (Invalid_argument "gen received an Lapply")
6363

6464
let frequency ~loc l = [%expr QCheck.Gen.frequency [%e l]]

0 commit comments

Comments
 (0)