Debian Codegraph @

test-suite/success/Mod_type.v

raw
1 (* Check BZ#1025 submitted by Pierre-Luc Carmel Biron *)
2
3 Module Type FOO.
4 Parameter A : Type.
5 End FOO.
6
7 Module Type BAR.
8 Declare Module Foo : FOO.
9 End BAR.
10
11 Module Bar : BAR.
12
13 Module Fu : FOO.
14 Definition A := Prop.
15 End Fu.
16
17 Module Foo := Fu.
18
19 End Bar.
20
21 (* Check BZ#2809: correct printing of modules with notations *)
22
23 Module C.
24 Inductive test : Type :=
25 | c1 : test
26 | c2 : nat -> test.
27
28 Notation "! x" := (c2 x) (at level 50).
29 End C.
30
31 Print C. (* Should print test_rect without failing *)