Debian Codegraph @

test-suite/success/NotationDeprecation.v

raw
1 Module Syndefs.
2
3 #[deprecated(since = "8.9", note = "Do not use.")]
4 Notation foo := Prop.
5
6 Fail
7 #[deprecated(since = "8.9", note = "Do not use."),
8 deprecated(since = "8.10", note = "Duplicated deprecation.")]
9 Notation foo := Prop.
10
11 Check foo.
12
13 Set Warnings "+deprecated".
14
15 Fail Check foo.
16
17 End Syndefs.
18
19 Module Notations.
20
21 #[deprecated(since = "8.9", note = "Do not use.")]
22 Notation "!!" := Prop.
23
24 Check !!.
25
26 Set Warnings "+deprecated".
27
28 Fail Check !!.
29
30 End Notations.
31
32 Module Infix.
33
34 #[deprecated(since = "8.9", note = "Do not use.")]
35 Infix "!!" := plus (at level 1).
36
37 Check (_ !! _).
38
39 Set Warnings "+deprecated".
40
41 Fail Check (_ !! _).
42
43 End Infix.