Skip to content

Commit f348d07

Browse files
committed
[TC] avoid a backtrack
1 parent 268a8b3 commit f348d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/tc/elpi/link.elpi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ namespace tc {
198198
cs (uvar _ as V) (app [HD | _] as T) :-
199199
if (HD = global (const Proj), tc.proj->record Proj Record)
200200
(reduce-cs V T Record Proj)
201-
(coq.unify-eq V T ok).
201+
(coq.unify-eq V T ok), !.
202202
cs T1 T2 :- not (T2 = app _), !, coq.unify-eq T1 T2 ok.
203203

204204
pred unify-under-ctx i:list term, i:list term, i:term, i:term, i:term, i:term.

0 commit comments

Comments
 (0)