Debian Codegraph @

test-suite/bugs/bug_3911.v

raw
1 (* Tested against coq ee596bc *)
2
3 Set Nonrecursive Elimination Schemes.
4 Set Primitive Projections.
5 Set Universe Polymorphism.
6
7 Record setoid := { base : Type }.
8
9 Definition catdata (Obj Arr : Type) : Type := nat.
10 (* [nat] can be replaced by any other type, it seems,
11 without changing the error *)
12
13 Record cat : Type :=
14 {
15 obj : setoid;
16 arr : Type;
17 dta : catdata (base obj) arr
18 }.
19
20 Definition bcwa (C:cat) (B:setoid) :Type := nat.
21 (* As above, nothing special about [nat] here. *)
22
23 Record temp {C}{B} (e:bcwa C B) :=
24 { fld : base (obj C) }.
25
26 Print temp_rect.