Skip to content

Commit

Permalink
Merge pull request #293 from LPCIC/fix-typing-cache
Browse files Browse the repository at this point in the history
do not cache type checking
  • Loading branch information
gares authored Nov 28, 2024
2 parents e598092 + 2d1c849 commit 356be26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compiler/type_checker.ml
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,8 @@ let check ~is_rule ~type_abbrevs ~kinds ~types:env ~unknown (t : ScopedTerm.t) ~
| UVar _ -> true

in
if MutableOnce.is_set t.ty then !unknown_global else
(* this is wrong, since the same unit may be checked against different contexts *)
(* if MutableOnce.is_set t.ty then !unknown_global else *)

let spills = check_loc ~tyctx:None Scope.Map.empty t ~ety:(TypeAssignment.unval exp) in
if is_rule then check_matches_poly_skema_loc ~unknown:!unknown_global t;
Expand Down

0 comments on commit 356be26

Please sign in to comment.