test-suite/bugs/HoTT_coq_081.v
raw| 1 | Set Primitive Projections. |
| 2 | Set Implicit Arguments. |
| 3 | Set Universe Polymorphism. |
| 4 | |
| 5 | Record category (A : Type) := |
| 6 | { ob :> Type; |
| 7 | hom : ob -> ob -> Type |
| 8 | }. |
| 9 | |
| 10 | Record foo { A: Type } := { C : category A; x : ob C; y :> hom _ x x }. |
| 11 | Definition comp A (C : category A) (x : C) (f : hom _ x x) := f. |
| 12 | |
| 13 | Definition bar A (f : @foo A) := @comp _ _ _ f. |
| 14 | |
| 15 | (* Toplevel input, characters 0-42: |
| 16 | Error: Cannot find the target class. *) |