diff options
author | 2015-02-16 20:59:09 +0100 | |
---|---|---|
committer | 2015-02-16 20:59:09 +0100 | |
commit | 86dd49a5a28eb71c0ce2cd2020e9f29ec4bd1f5a (patch) | |
tree | e939a3f726082e6fb9ac5b7b5da62c9f5fb29607 /test-suite | |
parent | 4358f0e93885eb77c1513d4d606e386fb22b068e (diff) |
Add test-suite file for #3960.
Diffstat (limited to 'test-suite')
-rw-r--r-- | test-suite/bugs/closed/3960.v | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/3960.v b/test-suite/bugs/closed/3960.v new file mode 100644 index 000000000..e56dcef74 --- /dev/null +++ b/test-suite/bugs/closed/3960.v @@ -0,0 +1,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 + }.
\ No newline at end of file |