Skip to content

Commit

Permalink
Merge pull request #61 from bbc2/add-test-intf
Browse files Browse the repository at this point in the history
Add test case in interface file (.mli)
  • Loading branch information
ejgallego authored Jul 13, 2021
2 parents 9295c26 + a9541f1 commit ec5a838
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src_test/ppx_deriving/test_intf.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type a = [%import: Stuff.a]
1 change: 1 addition & 0 deletions src_test/ppx_deriving/test_intf.mli
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type a = [%import: Stuff.a]
1 change: 1 addition & 0 deletions src_test/ppx_deriving/test_ppx_import.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module type S_rec = [%import: (module Stuff.S_rec)]
let test_constr _ctxt =
ignore [A1; A2 "a"];
ignore (Stuff.A1 = A1);
ignore (Test_intf.A1 = A1);
ignore {b1 = A1; b2 = "x"; b3 = Int64.zero};
ignore (`A : c);
ignore (Int64.zero : d);
Expand Down

0 comments on commit ec5a838

Please sign in to comment.