Skip to content

Commit 78a0834

Browse files
authored
Merge pull request #908 from LPCIC/fix-detcheck-resolution
Test for fix type name collision
2 parents f04f08e + d7c0f51 commit 78a0834

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/test_detcheck.v

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
From elpi Require Import elpi.
2+
3+
Elpi Command test.
4+
Elpi Db foo lp:{{/*(*/
5+
pred test o:pstring.
6+
/*)*/}}.
7+
Elpi File buggy_inline lp:{{/*(*/
8+
kind f type -> type.
9+
kind s type.
10+
typeabbrev pstring (f s).
11+
/*)*/}}.
12+
Fail Elpi Accumulate foo File buggy_inline.
13+
(* Elpi Accumulate Db foo.
14+
Elpi Query lp:{{/*(*/
15+
coq.string->pstring "x" Primx,
16+
X = test Primx,
17+
coq.elpi.accumulate _ "foo" (clause _ _ X).
18+
/*)*/}}. *)

0 commit comments

Comments
 (0)