Debian Codegraph @

test-suite/bugs/bug_14652.v

raw
1 Record myRecord := {
2 my_class : Type ;
3 }.
4
5 Fail #[export] Instance my_instance : forall x, my_class x.
6
7 Existing Class my_class.
8
9 #[export] Instance my_instance : forall x, my_class x. Abort.
10
11 Definition my_existing_instance : forall x, my_class x. Admitted.
12
13 #[export]
14 Existing Instance my_existing_instance.
15
16 Set Primitive Projections.
17
18 Record myOtherRecord := {
19 my_other_class : Type ;
20 }.
21
22 Fail #[export] Instance my_other_instance : forall x, my_other_class x.
23
24 Existing Class my_other_class.
25
26 #[export] Instance my_other_instance : forall x, my_other_class x. Abort.
27
28 Definition my_other_existing_instance : forall x, my_other_class x. Admitted.
29
30 (* ??? *)
31 (* Used to be: Constant does not build instances of a declared type class. *)
32 #[export]
33 Existing Instance my_other_existing_instance.