Skip to content

Commit 2387a2d

Browse files
committed
minor fixes
1 parent be3174e commit 2387a2d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ocaml/typing/typecore.ml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,6 @@ let mode_max =
477477
let mode_with_position mode position =
478478
{ (mode_default mode) with position }
479479

480-
let mode_with_position mode position =
481-
{ (mode_default mode) with position }
482-
483480
let mode_max_with_position position =
484481
{ mode_max with position }
485482

@@ -553,7 +550,8 @@ let mode_argument ~funct ~index ~position_and_mode ~partial_app marg =
553550
Id_prim _, _), 1, Tail ->
554551
(* RHS of (&&) and (||) is at the tail of function region if the
555552
application is. The argument mode is not constrained otherwise. *)
556-
mode_with_position vmode (RTail (Option.get position_and_mode.region_mode, FTail))
553+
mode_with_position vmode (RTail (Option.get position_and_mode.region_mode, FTail)),
554+
vmode
557555
| Texp_ident (_, _, _, Id_prim _, _), _, _ ->
558556
(* Other primitives cannot be tail-called *)
559557
mode_default vmode, vmode

0 commit comments

Comments
 (0)