aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbelin2001-12-21 16:13:44 +0000
committerherbelin2001-12-21 16:13:44 +0000
commit7af730c8408f294ebe568240a3288f24a0959847 (patch)
tree2670fd7fa18fe61ad1e108b8c8d479e4c7dda579
parent8aec9f8f934c99e0ce34b5145e835df29db82831 (diff)
Ajout d'un exemple de Christine
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2365 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--test-suite/success/implicit.v11
1 files changed, 10 insertions, 1 deletions
diff --git a/test-suite/success/implicit.v b/test-suite/success/implicit.v
index 5f0067412c..bd74742857 100644
--- a/test-suite/success/implicit.v
+++ b/test-suite/success/implicit.v
@@ -1,9 +1,18 @@
(* Implicit on section variables *)
-(* Example submitted by David Nowak *)
Set Implicit Arguments.
+
+(* Example submitted by David Nowak *)
+
Section Spec.
Variable A:Set.
Variable op : (A:Set)A->A->Set.
Infix 6 "#" op.
Check (x:A)(x # x).
+
+(* Example submitted by Christine *)
+Record stack : Type := {type : Set; elt : type;
+ empty : type -> bool; proof : (empty elt)=true }.
+
+Check (type:Set; elt:type; empty:(type->bool))(empty elt)=true->stack.
+