Skip to content

Commit 7d46712

Browse files
authored
flambda-backend: Bugfix for Typedtree generation of arrow types (#539)
1 parent 61a7b47 commit 7d46712

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

testsuite/tests/tool-ocamlc-stop-after/stop_after_typing_impl.compilers.reference

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
core_type (stop_after_typing_impl.ml[13,365+16]..stop_after_typing_impl.ml[13,365+19])
99
Ttyp_constr "int!"
1010
[]
11-
core_type (stop_after_typing_impl.ml[13,365+16]..stop_after_typing_impl.ml[13,365+19])
11+
core_type (stop_after_typing_impl.ml[13,365+23]..stop_after_typing_impl.ml[13,365+26])
1212
Ttyp_constr "int!"
1313
[]
1414
[

typing/typetexp.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ and transl_type_aux env policy mode styp =
243243
newty
244244
(Tarrow((l,arg_mode,ret_mode), arg_ty, ret_cty.ctyp_type, Cok))
245245
in
246-
ctyp (Ttyp_arrow (l, arg_cty, arg_cty)) ty
246+
ctyp (Ttyp_arrow (l, arg_cty, ret_cty)) ty
247247
| [] -> transl_type env policy ret_mode ret
248248
in
249249
loop mode args

0 commit comments

Comments
 (0)