blob: ba82e6c3762c48dc62d414a3f09a0ca85cf26404 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
Set Primitive Projections.
Record box (T U : Type) (x := T) := wrap { unwrap : T }.
Definition mybox : box True False := wrap _ _ I.
Definition unwrap' := @unwrap.
Definition bad' : True := mybox.(unwrap _ _).
Fail Definition bad : False := unwrap _ _ mybox.
(* Closed under the global context *)
|