diff --git a/src_test/ppx_deriving/errors/run.t b/src_test/ppx_deriving/errors/run.t index a59764f..b4e2f4c 100644 --- a/src_test/ppx_deriving/errors/run.t +++ b/src_test/ppx_deriving/errors/run.t @@ -101,3 +101,17 @@ Cannot find module error ^^^^^^^^^ Error: [%import]: cannot find the module type M in Stuff.S [1] + +Multiple signature items + $ cat >test.ml < [%%import: + > type b = int + > type a = string] + > EOF + $ dune build + File "test.ml", lines 1-3, characters 0-16: + 1 | [%%import: + 2 | type b = int + 3 | type a = string] + Error: [] expected + [1] diff --git a/src_test/ppx_deriving/errors_lte_407/run.t b/src_test/ppx_deriving/errors_lte_407/run.t index 5ec3a01..da8c997 100644 --- a/src_test/ppx_deriving/errors_lte_407/run.t +++ b/src_test/ppx_deriving/errors_lte_407/run.t @@ -87,3 +87,14 @@ Cannot find module error File "test.ml", line 1, characters 34-43: Error: [%import]: cannot find the module type M in Stuff.S [1] + +Multiple signature items + $ cat >test.ml < [%%import: + > type b = int + > type a = string] + > EOF + $ dune build + File "test.ml", line 1, characters 0-40: + Error: [] expected + [1]