Skip to content

Commit

Permalink
Use structural equality in generic_substitue_type' to fix type substi…
Browse files Browse the repository at this point in the history
…tution issues.
  • Loading branch information
Apprentice-Alchemist committed Jun 8, 2024
1 parent 34e509a commit 849cf61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typing/generic.ml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ let rec generic_substitute_type' gctx allow_expr t =
t
| _ ->
try
let t,eo = List.assq t gctx.subst in
let t,eo = List.assoc t gctx.subst in
(* Somewhat awkward: If we allow expression types, use the original KExpr one. This is so
recursing into further KGeneric expands correctly. *)
begin match eo with
Expand Down

0 comments on commit 849cf61

Please sign in to comment.