| 1 |
#[deprecated(since = "X.Y", note = "Use idtac instead.")] |
| 2 |
Ltac foo := idtac. |
| 3 |
|
| 4 |
Fail #[deprecated(since="today", why="I said so")] Definition foo := 1. |
| 5 |
|
| 6 |
Goal True. |
| 7 |
foo. |
| 8 |
Abort. |
| 9 |
|
| 10 |
Set Warnings "-deprecated-since-X.Y". |
| 11 |
|
| 12 |
Goal True. |
| 13 |
foo. |
| 14 |
Abort. |
| 15 |
|
| 16 |
Set Warnings "+deprecated-since-X.Y". |
| 17 |
|
| 18 |
Goal True. |
| 19 |
Fail foo. |
| 20 |
Abort. |
| 21 |
|
| 22 |
#[deprecated(since = "library X.Y", note = "Use baz instead.")] |
| 23 |
Ltac bar := idtac. |
| 24 |
|
| 25 |
Goal True. |
| 26 |
bar. |
| 27 |
Abort. |
| 28 |
|
| 29 |
#[warn(note="hello")] Definition bar := 2. |
| 30 |
|
| 31 |
Check bar. |
| 32 |
|
| 33 |
#[warn(note="use less +s", cats="too many plus,fragile")] Notation "x +++ y" := (x + y) (at level 2). |
| 34 |
#[warn(note="use less +s 2", cats="too-many-plus")] Notation "x ++ y" := (x + y). |
| 35 |
|
| 36 |
Check 1 +++ 2. |
| 37 |
Check 1 ++ 2. |