Skip to content

Commit

Permalink
Make compatible with 4.04
Browse files Browse the repository at this point in the history
  • Loading branch information
bn-d committed Aug 19, 2021
1 parent eaac9bd commit 9404f27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ppx_make.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.2.0"
version: "0.2.1"
synopsis: "Ppxlib based make deriver"
maintainer: ["Boning <[email protected]>"]
authors: ["Boning <[email protected]>"]
Expand Down
4 changes: 2 additions & 2 deletions src/ppx_make.ml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ let str_item_of_variant_choice name (cd : P.constructor_declaration) :
P.structure_item =
let loc = cd.pcd_loc in
Ast_helper.with_default_loc loc (fun () ->
if Option.is_some cd.pcd_res then
if cd.pcd_res != None then
Utils.unsupported_error name
else
let pat =
Expand Down Expand Up @@ -278,7 +278,7 @@ let sig_item_of_variant_choice name (cd : P.constructor_declaration) :
P.signature_item =
let loc = cd.pcd_loc in
Ast_helper.with_default_loc loc (fun () ->
if Option.is_some cd.pcd_res then
if cd.pcd_res != None then
Utils.unsupported_error name
else
let fun_name = Utils.gen_make_choice_name name cd.pcd_name in
Expand Down

0 comments on commit 9404f27

Please sign in to comment.