@@ -240,6 +240,11 @@ checkConfigOutput '^"24"$' config.foo ./freeform-attrsOf.nix ./freeform-str-dep-
240240checkConfigError 'infinite recursion encountered' config.foo ./freeform-attrsOf.nix ./freeform-unstr-dep-str.nix
241241checkConfigError 'The option .* is used but not defined' config.foo ./freeform-lazyAttrsOf.nix ./freeform-unstr-dep-str.nix
242242checkConfigOutput '^"24"$' config.foo ./freeform-lazyAttrsOf.nix ./freeform-unstr-dep-str.nix ./define-value-string.nix
243+# submodules in freeformTypes should have their locations annotated
244+checkConfigOutput '/freeform-submodules.nix"$' config.fooDeclarations.0 ./freeform-submodules.nix
245+# freeformTypes can get merged using `types.type`, including submodules
246+checkConfigOutput '^10$' config.free.xxx.foo ./freeform-submodules.nix
247+checkConfigOutput '^10$' config.free.yyy.bar ./freeform-submodules.nix
243248
244249## types.anything
245250# Check that attribute sets are merged recursively