aboutsummaryrefslogtreecommitdiff
path: root/test-suite/bugs/closed/bug_4276.v
blob: f0da3e490af3a6ba2d8f617516aeddb821038cb8 (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 *)