Skip to content

Commit 97afc38

Browse files
author
Nathan Rebours
committed
Fix copy_module_type_desc_with_loc
Signed-off-by: Nathan Rebours <nathan.rebours@ocamlpro.com>
1 parent fe925ba commit 97afc38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astlib/migrate_504_503.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ and copy_module_type_desc_with_loc ~loc :
822822
Encoding_504.To_503.encode_bivariant_pmty_with ~loc mty constraints
823823
else
824824
Ast_503.Parsetree.Pmty_with
825-
(copy_module_type x0, List.map copy_with_constraint x1)
825+
(copy_module_type x0, constraints)
826826
| Ast_504.Parsetree.Pmty_typeof x0 ->
827827
Ast_503.Parsetree.Pmty_typeof (copy_module_expr x0)
828828
| Ast_504.Parsetree.Pmty_extension x0 ->

0 commit comments

Comments
 (0)