Skip to content

Commit d466fc9

Browse files
committed
fix a mistake of refactoring about passing type environments (2)
1 parent 643b188 commit d466fc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frontend/typechecker.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ let typecheck_abstraction (pre : pre) (tyenv : Typeenv.t) (param_units : untyped
278278
let open ResultMonad in
279279
let* (tyenv, acc) =
280280
param_units |> foldM (fun (tyenv, acc) param_unit ->
281-
let* (patvarmap, ty_labmap, ty_pat, evid_labmap, epat) =
281+
let* (tyenv, ty_labmap, ty_pat, evid_labmap, epat) =
282282
let cons (_, label) ty ty_labmap = ty_labmap |> LabelMap.add label ty in
283283
let nil = LabelMap.empty in
284284
typecheck_function_parameter_unit ~cons ~nil pre tyenv param_unit

0 commit comments

Comments
 (0)