Skip to content

Commit 9a297a8

Browse files
committed
Fix missing entries in module map in Lang_of
1 parent 104ae93 commit 9a297a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/xref2/lang_of.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ and simple_expansion :
611611
map with
612612
functor_parameter =
613613
(arg.id, param_identifier) :: map.functor_parameter;
614+
module_ = Component.ModuleMap.add arg.id param_identifier map.module_;
614615
}
615616
in
616617
let arg = functor_parameter map arg in
@@ -825,6 +826,7 @@ and module_type_expr map identifier = function
825826
{
826827
map with
827828
functor_parameter = (arg.id, identifier') :: map.functor_parameter;
829+
module_ = Component.ModuleMap.add arg.id identifier' map.module_;
828830
}
829831
in
830832
Functor

0 commit comments

Comments
 (0)