aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs/closed/3960.v
blob: 352731248601e64f6141c0e9d93775f207277939 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Require Program.Tactics.

Axiom foo : nat -> Prop.

Axiom fooP : forall n, foo n.

Class myClass (A: Type) :=
  {
    bar : A -> Prop
  }.

Program Instance myInstance : myClass nat :=
  {
    bar := foo
  }.

Class myClassP (A : Type)  :=
  {
    super :> myClass A;
    barP : forall (a : A), bar a
  }.

Instance myInstanceP : myClassP nat :=
  {
    barP := fooP
  }.