Debian Codegraph @

test-suite/bugs/bug_3960.v

raw
1 Require Program.Tactics.
2
3 Axiom foo : nat -> Prop.
4
5 Axiom fooP : forall n, foo n.
6
7 Class myClass (A: Type) :=
8 {
9 bar : A -> Prop
10 }.
11
12 #[export] Program Instance myInstance : myClass nat :=
13 {
14 bar := foo
15 }.
16
17 Class myClassP (A : Type) :=
18 {
19 super :: myClass A;
20 barP : forall (a : A), bar a
21 }.
22
23 #[export] Instance myInstanceP : myClassP nat :=
24 {
25 barP := fooP
26 }.