From 2fea5f2e5938b20f9da16d2a90885599f6dda9cd Mon Sep 17 00:00:00 2001 From: Corentin Leruth Date: Sun, 5 Feb 2023 07:53:38 +0100 Subject: [PATCH] add test for module type decl in signature item --- src_test/ppx_deriving/test_intf.ml | 4 ++++ src_test/ppx_deriving/test_intf.mli | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src_test/ppx_deriving/test_intf.ml b/src_test/ppx_deriving/test_intf.ml index af05751..e5d84e2 100644 --- a/src_test/ppx_deriving/test_intf.ml +++ b/src_test/ppx_deriving/test_intf.ml @@ -1 +1,5 @@ [%%import: type a = Stuff.a] + +module type Example = sig + module type InnerModule = [%import: (module Stuff.S_optional)] +end diff --git a/src_test/ppx_deriving/test_intf.mli b/src_test/ppx_deriving/test_intf.mli index af05751..e5d84e2 100644 --- a/src_test/ppx_deriving/test_intf.mli +++ b/src_test/ppx_deriving/test_intf.mli @@ -1 +1,5 @@ [%%import: type a = Stuff.a] + +module type Example = sig + module type InnerModule = [%import: (module Stuff.S_optional)] +end