We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f57378 commit 3ee650cCopy full SHA for 3ee650c
1 file changed
typing/typemod.ml
@@ -144,6 +144,7 @@ let extract_sig_open env loc mty =
144
(* Extract the signature of a functor's body, using the provided [sig_acc]
145
signature to fill in names from its parameter *)
146
let extract_sig_functor_open funct_body env loc mty sig_acc =
147
+ let sig_acc = List.rev sig_acc in
148
match Env.scrape_alias env mty with
149
| Mty_functor (Named (param, mty_param),mty_result) as mty_func ->
150
let sg_param =
@@ -154,7 +155,7 @@ let extract_sig_functor_open funct_body env loc mty sig_acc =
154
155
let coercion =
156
try
157
Includemod.include_functor_signatures ~mark:Mark_both env
- (List.rev sig_acc) sg_param
158
+ sig_acc sg_param
159
with Includemod.Error msg ->
160
raise (Error(loc, env, Not_included_functor msg))
161
in
0 commit comments