Debian Codegraph @

test-suite/bugs/bug_4276.v

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