Skip to content

Commit b27693c

Browse files
committed
test case for synterp bug
1 parent 93d005c commit b27693c

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

tests/test_synterp.v

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,22 @@ Elpi Accumulate Db db1.
156156
Elpi Accumulate lp:{{ main _. }}.
157157
#[synterp] Elpi Accumulate lp:{{ main _. }}.
158158

159-
Elpi Typecheck.
159+
Elpi Typecheck.
160+
161+
(* ********************************************* *)
162+
163+
Set Implicit Arguments.
164+
Elpi Command foo3.
165+
Elpi Accumulate lp:{{
166+
main _ :-
167+
D = (record "foo" {{ Type }} "mkfoo" (field [] "f" {{ Type }} _\end-record)),
168+
coq.typecheck-indt-decl D ok,
169+
coq.env.add-indt D I.
170+
}}.
171+
#[synterp] Elpi Accumulate lp:{{
172+
main _ :- coq.env.begin-module "x" none, coq.env.end-module _.
173+
}}.
174+
Elpi foo3.
175+
176+
177+

0 commit comments

Comments
 (0)