Skip to content

Commit

Permalink
Merge pull request #43 from SoftwareFoundationGroupAtKyotoU/ldti_orig…
Browse files Browse the repository at this point in the history
…inal

eval_Var_bug
  • Loading branch information
ymyzk authored Dec 3, 2024
2 parents cf5c302 + 23d40e4 commit 5c69555
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/eval.ml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ let rec eval ?(debug=false) (env: (tyvar list * value) Environment.t) f =
let xs, v = Environment.find x env in
let us = List.map nu_to_fresh us in
begin match v with
| FunV proc -> FunV (fun _ -> proc (xs, us))
| FunV proc -> FunV (
fun (xs', us') ->
let us = List.map (subst_type (Utils.List.zip xs' us')) us in
proc (xs, us)
)
| _ -> v
end
| IConst (_, i) -> IntV i
Expand Down

0 comments on commit 5c69555

Please sign in to comment.