blob: ea9cbb210fe9177babc8b1ceb187acd8345c36de (
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 *)
|