test-suite/bugs/HoTT_coq_037.v
raw| 1 | Set Printing Universes. |
| 2 | |
| 3 | Fixpoint CardinalityRepresentative (n : nat) : Set := |
| 4 | match n with |
| 5 | | O => Empty_set |
| 6 | | S n' => sum (CardinalityRepresentative n') unit |
| 7 | end. |
| 8 | (* Toplevel input, characters 104-143: |
| 9 | Error: |
| 10 | In environment |
| 11 | CardinalityRepresentative : nat -> Set |
| 12 | n : nat |
| 13 | n' : nat |
| 14 | The term "(CardinalityRepresentative n' + unit)%type" has type |
| 15 | "Type (* max(Top.73, Top.74) *)" while it is expected to have type |
| 16 | "Set". *) |