Skip to content

Commit 8e4abfa

Browse files
committed
Apply upstream scope fix.
474804ad04048775bd92fa0d1baa7bd798cc14c6
1 parent 20afdf6 commit 8e4abfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ocaml/typing/types.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ let set_level ty level =
862862
(* TODO: introduce a guard and rename it to set_higher_scope? *)
863863
let set_scope ty scope =
864864
let ty = repr ty in
865-
let prev_scope = ty.scope land marks_mask in
865+
let prev_scope = ty.scope land scope_mask in
866866
if scope <> prev_scope then begin
867867
if ty.id <= !last_snapshot then log_change (Cscope (ty, prev_scope));
868868
Transient_expr.set_scope ty scope

0 commit comments

Comments
 (0)