Skip to content

Commit 32609ca

Browse files
authored
Merge pull request #130 from ppedrot/module-expr-type-gadt
Adapt w.r.t. rocq-prover/rocq#19943.
2 parents 992c3a5 + 210a25d commit 32609ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/declare_translation.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ and declare_module ~opaque_access ?(continuation = ignore) ?name arity mb =
216216
debug_string [`Module] "--> declare_module";
217217
let open Declarations in
218218
let mp = mb.mod_mp in
219-
match mb.mod_expr, mb.mod_type with
219+
match Declareops.mod_expr mb, mb.mod_type with
220220
| Algebraic _, NoFunctor fields
221221
| FullStruct, NoFunctor fields ->
222222
let id = id_of_module_path mp in
@@ -299,7 +299,7 @@ and declare_module ~opaque_access ?(continuation = ignore) ?name arity mb =
299299
end
300300
| (lab, SFBmodule mb') when
301301
match mb'.mod_type with NoFunctor _ ->
302-
(match mb'.mod_expr with FullStruct | Algebraic _ -> true | _ -> false)
302+
(match Declareops.mod_expr mb' with FullStruct | Algebraic _ -> true | _ -> false)
303303
| _ -> false
304304
->
305305
declare_module ~opaque_access ~continuation arity mb'

0 commit comments

Comments
 (0)