diff options
| author | Enrico Tassi | 2014-03-26 13:52:13 +0100 |
|---|---|---|
| committer | Enrico Tassi | 2014-03-26 14:07:36 +0100 |
| commit | a59b49b7fe5f41e092609a464ba1df6fba53911f (patch) | |
| tree | e7536d8303dd15e7eaaab10d0ccba72a1cf1c1e1 | |
| parent | 89af6fc3f3940cb03553c403432dfff52e6d8d7a (diff) | |
test for apply + TC resolution
| -rw-r--r-- | test-suite/success/applyTC.v | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test-suite/success/applyTC.v b/test-suite/success/applyTC.v new file mode 100644 index 0000000000..c2debdecfe --- /dev/null +++ b/test-suite/success/applyTC.v @@ -0,0 +1,15 @@ +Axiom P : nat -> Prop. + +Class class (A : Type) := { val : A }. + +Lemma usetc {t : class nat} : P (@val nat t). +Admitted. + +Notation "{val:= v }" := (@val _ v). + +Instance zero : class nat := {| val := 0 |}. + +Lemma test : P 0. +Fail apply usetc. +pose (tmp := usetc); apply tmp; clear tmp. +Qed. |
