Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed May 9, 2022
1 parent 7c07015 commit 2a511a7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions elpi-builtin.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ external type constant any -> variadic any prop.
external pred names % generates the list of eigenvariable
o:list any. % list of eigenvariables in order of age (young first)

external pred occurs % checks if the constant occurs in the term
i:any, % a constant (global or eigenvariable)
external pred occurs % checks if the atom occurs in the term
i:any, % an atom, that is a global constant or a bound name (aka eigenvariable)
i:any. % a term

% [closed_term T] unify T with a variable that has no eigenvariables in
Expand Down
4 changes: 2 additions & 2 deletions tests/test_API.v
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Elpi Query lp:{{

Class foo (n : nat).
Definition bar n {f : foo n} := n = n.
Instance xxx : foo 3. Defined.
#[local] Instance xxx : foo 3. Defined.

Elpi Query lp:{{

Expand Down Expand Up @@ -623,7 +623,7 @@ Elpi Query lp:{{ coq.TC.declare-class {{:gref C }} }}.

Axiom c : C nat.

Instance foox : C nat := c.
#[local] Instance foox : C nat := c.

(****** CS **********************************)

Expand Down
8 changes: 4 additions & 4 deletions tests/test_API2.v
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ Elpi Query lp:{{

(* Hints transparent *)

Hint Opaque plus : core.
#[local] Hint Opaque plus : core.
Definition times := plus.
Hint Transparent times : core.
#[local] Hint Transparent times : core.

Elpi Query lp:{{

Expand All @@ -156,7 +156,7 @@ Elpi Query lp:{{

}}.

Hint Opaque x : core.
#[local] Hint Opaque x : core.

Elpi Query lp:{{
std.do! [
Expand Down Expand Up @@ -186,7 +186,7 @@ Elpi Query lp:{{

}}.

Hint Opaque x : core.
#[local] Hint Opaque x : core.

Elpi Query lp:{{
std.do! [
Expand Down

0 comments on commit 2a511a7

Please sign in to comment.