diff options
author | 2007-05-06 13:00:39 +0000 | |
---|---|---|
committer | 2007-05-06 13:00:39 +0000 | |
commit | 956eab0d8af124ef30cb4319f3798f6776919eca (patch) | |
tree | 3243e0a203e3917e2a031ee7506baa0766ebf5a0 /test-suite/output/Implicit.v | |
parent | 1c0b79b69eaf1ff3c773cef08d24761960dcdbeb (diff) |
Nouveaux changements autour des implicites (notamment suite à
discussion avec Georges)
- La notion d'insertion maximale n'est plus globale mais attachée à
chaque implicite
- Correction de petits bugs dans le calcul des implicites
- Raffinement de la notion "sous contexte" pour l'affichage des coercions
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9817 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite/output/Implicit.v')
-rw-r--r-- | test-suite/output/Implicit.v | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test-suite/output/Implicit.v b/test-suite/output/Implicit.v index 0ff7e87f3..4c6f2b5dd 100644 --- a/test-suite/output/Implicit.v +++ b/test-suite/output/Implicit.v @@ -17,3 +17,22 @@ Definition d1 y x (h : x = y :>nat) := h. Definition d2 x := d1 (y:=x). Print d2. + +(* Check maximal insertion of implicit *) + +Require Import List. + +Open Scope list_scope. + +Set Implicit Arguments. +Set Maximal Implicit Insertion. + +Definition id (A:Type) (x:A) := x. + +Check map id (1::nil). + +Definition id' (A:Type) (x:A) := x. + +Implicit Arguments id' [[A]]. + +Check map id' (1::nil). |