Debian Codegraph @

test-suite/bugs/HoTT_coq_087.v

raw
1 Structure type : Type := Pack { ob : Type }.
2 Polymorphic Record category := { foo : Type }.
3 Definition FuncComp := Pack category.
4 Axiom C : category.
5
6 Check (C : ob FuncComp). (* OK *)
7
8 Canonical Structure FuncComp.
9
10 Check (C : ob FuncComp).
11 (* Toplevel input, characters 15-39:
12 Error:
13 The term "C" has type "category" while it is expected to have type
14 "ob FuncComp". *)