Skip to content

Commit 622716d

Browse files
authored
Merge pull request #706 from FissoreD/ce-not-ground-clause-acc-error
[coq_elpi_builtins] change error msg accumulating non-closed clause in a db
2 parents 59e8757 + 66365a9 commit 622716d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coq_elpi_builtins.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ let preprocess_clause ~depth clause =
579579
E.mkLam (subst ~depth:(depth+1) m x)
580580
| E.Builtin(c,xs) ->
581581
E.mkBuiltin c (List.map (subst ~depth m) xs)
582-
| E.UnifVar _ -> assert false
582+
| E.UnifVar _ -> CErrors.error Pp.(str"The clause begin accumulated contains unification variables, this is forbidden. You must quantify them out using 'pi'.")
583583
| E.Const _ | E.Nil | E.CData _ -> t
584584
in
585585
let clause =

0 commit comments

Comments
 (0)