| 1 |
Unset Strict Universe Declaration. |
| 2 |
Module WithoutPoly. |
| 3 |
Unset Universe Polymorphism. |
| 4 |
Definition foo (A : Type@{i}) (B : Type@{i}) := A -> B. |
| 5 |
Set Printing Universes. |
| 6 |
Definition bla := ((@foo : Set -> _ -> _) : _ -> Type -> _). |
| 7 |
(* ((fun A : Set => foo A):Set -> Type@{Top.55} -> Type@{Top.55}) |
| 8 |
:Set -> Type@{Top.55} -> Type@{Top.55} |
| 9 |
: Set -> Type@{Top.55} -> Type@{Top.55} |
| 10 |
(* |= Set <= Top.55 |
| 11 |
*) *) |
| 12 |
End WithoutPoly. |
| 13 |
Module WithPoly. |
| 14 |
Set Universe Polymorphism. |
| 15 |
Definition foo (A : Type@{i}) (B : Type@{i}) := A -> B. |
| 16 |
Set Printing Universes. |
| 17 |
Fail Check ((@foo : Set -> _ -> _) : _ -> Type -> _). |
| 18 |
End WithPoly. |