Debian Codegraph @

test-suite/output/PrintingCoercion.v

raw
1
2 Parameter A B C D : Type.
3
4 Parameter f : A -> B.
5 Parameter g : B -> C.
6 Parameter h : C -> D.
7
8 Coercion f : A >-> B.
9 Coercion g : B >-> C.
10
11 Parameter a : A.
12
13 Check a : C.
14
15 Module M.
16 Module N.
17 Section S.
18 Add Printing Coercion f. (* implicit local *)
19 #[export] Add Printing Coercion g.
20
21 Variable h' : C -> D.
22
23 Coercion h' : C >-> D.
24
25 Fail Global Add Printing Coercion h'.
26 Fail #[export] Add Printing Coercion h'.
27
28 Check a : D.
29
30 Fail Add Printing Coercion h.
31 Add Printing Coercion h'.
32
33 Check a : D.
34
35 End S.
36
37 Check a : C.
38
39 Global Add Printing Coercion f.
40
41 Coercion h : C >-> D.
42 Add Printing Coercion h. (* implicit export *)
43
44 Check a : D.
45 End N.
46 Check a : C.
47
48 Remove Printing Coercion f. (* implicit export *)
49 End M.
50 Check a : C.
51
52 Import M.
53 Check a : C.
54
55 Import(coercions) N.
56 Check a : D.
57
58 Import(options) N.
59 Check a : D.