Debian Codegraph @

test-suite/bugs/bug_4034.v

raw
1 (* This checks compatibility of interpretation scope used for exact
2 between 8.4 and 8.5. See discussion at
3 https://coq.inria.fr/bugs/show_bug.cgi?id=4034. It is not clear
4 what we would like exactly, but certainly, if exact is interpreted
5 in a special scope, it should be interpreted consistently so also
6 in ltac code. *)
7
8 Record Foo := {}.
9 Bind Scope foo_scope with Foo.
10 Notation "!" := Build_Foo : foo_scope.
11 Notation "!" := 1 : core_scope.
12 Open Scope foo_scope.
13 Open Scope core_scope.
14
15 Goal Foo.
16 Fail exact !.
17 (* ... but maybe will we want it to succeed eventually if we ever
18 would be able to make it working the same in
19
20 Ltac myexact e := exact e.
21
22 Goal Foo.
23 myexact !.
24 Defined.
25 *)
26 Abort.