Debian Codegraph @

test-suite/output/deprecation_definition.v

raw
1 Require Import Corelib.Program.Tactics.
2
3 #[deprecated(note="deprecable")]
4 Lemma depr1 : True.
5 Proof.
6 exact I.
7 Qed.
8
9 #[deprecated(note="deprecable")]
10 Theorem depr2 : True.
11 Proof.
12 exact I.
13 Qed.
14
15 #[deprecated(note="deprecable")]
16 Axiom depr3 : True.
17
18 #[deprecated(note="deprecable")]
19 Definition depr4 := True.
20
21 #[deprecated(note="deprecable")]
22 Program Definition depr5 := True.
23
24 #[deprecated(note="deprecable")]
25 Fixpoint depr6 n := match n with S n => depr6 n | 0 => 1 end.
26
27 Check depr1.
28 Check depr2.
29 Check depr3.
30 Check depr4.
31 Check depr5.
32 Check depr6.
33
34 #[deprecated(note="deprecable"),
35 warn(note="be careful", cats="careful, be careful"),
36 warn(note="also about bla", cats="careful, careful bla")]
37 Definition depr7 := True.
38 Check depr7.