Skip to content

Commit bad7a17

Browse files
committed
add backwards compat test
1 parent e7b4b51 commit bad7a17

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test-suite/bugs/bug_21671.v

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
(* this tests a backwards compat hack, remove when the hack is removed *)
2+
3+
Declare Scope category_theory_scope.
4+
5+
Fail #[warning="+at-level-200-changed"]
6+
Notation "'exists' x .. y , p" := (sigT (fun x => .. (sigT (fun y => p)) ..))
7+
(at level 200, x binder, right associativity,
8+
format "'[' 'exists' '/ ' x .. y , '/ ' p ']'") :
9+
category_theory_scope.
10+
11+
Notation "'exists' x .. y , p" := (sigT (fun x => .. (sigT (fun y => p)) ..))
12+
(at level 200, x binder, right associativity,
13+
format "'[' 'exists' '/ ' x .. y , '/ ' p ']'") :
14+
category_theory_scope.
15+
16+
Notation "'mif' b 'then' t 'else' u" :=
17+
(b * (t + u))
18+
(at level 200) : category_theory_scope.
19+
20+
Notation "'mif' b 'then' t 'else' u" :=
21+
(b * (t + u))
22+
(at level 200) : tactic_scope.

0 commit comments

Comments
 (0)