Commit 2ab8c14e authored by Martin Clochard's avatar Martin Clochard
Browse files

compute: fix correction bug related to typing corner cases

parent c0e2fdb3
......@@ -330,8 +330,12 @@ let first_order_matching (vars : Svs.t) (largs : term list)
match t2.t_node with
| Tapp(ls2,args2) when ls_equal ls1 ls2 ->
loop sigma (List.rev_append args1 r1)
(List.rev_append args2 r2)
let mt, mv = loop sigma (List.rev_append args1 r1)
(List.rev_append args2 r2) in
try Ty.oty_match mt t1.t_ty t2.t_ty, mv
with Ty.TypeMismatch _ -> raise NoMatch
| _ -> raise NoMatch
| _ ->
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment