Debian Codegraph @

test-suite/bugs/bug_4294.v

raw
1 Require Import TestSuite.hurkens.
2
3 Module NonPoly.
4 Module Type Foo.
5 Definition U := Type.
6 Parameter eq : Type = U.
7 End Foo.
8
9 Module M : Foo with Definition U := Type.
10 Definition U := Type.
11 Definition eq : Type = U := eq_refl.
12 End M.
13
14 Print Universes.
15 Fail Definition bad : False := TypeNeqSmallType.paradox M.U M.eq.
16 End NonPoly.
17
18 Set Universe Polymorphism.
19
20 Module Type Foo.
21 Definition U := Type.
22 Monomorphic Parameter eq : Type = U.
23 End Foo.
24
25 Module M : Foo with Definition U := Type.
26 Definition U := Type.
27 Monomorphic Definition eq : Type = U := eq_refl.
28 End M.
29
30 Fail Definition bad : False := TypeNeqSmallType.paradox Type M.eq.
31 (* Print Assumptions bad. *)