Debian Codegraph @

test-suite/modules/WithDefUBinders.v

raw
1
2 Set Universe Polymorphism.
3 Module Type T.
4 Axiom foo@{u v|u < v} : Type@{v}.
5 End T.
6
7 Module M : T with Definition foo@{u v} := Type@{u} : Type@{v}.
8 Definition foo@{u v} := Type@{u} : Type@{v}.
9 End M.
10
11 Fail Module M' : T with Definition foo := Type.
12
13 (* Without the binder expression we have to do trickery to get the
14 universes in the right order. *)
15 Module M' : T with Definition foo := let t := Type in t.
16 Definition foo := let t := Type in t.
17 End M'.