From de6e0fdd9f3078b9b0ccf87ba8a7dcc9cc47c9aa Mon Sep 17 00:00:00 2001 From: herbelin Date: Thu, 10 May 2007 15:31:46 +0000 Subject: Prise en compte réversibilité des notations de la forme "Notation Nil := @nil". Ajout @ref au niveau constr pour allègement syntaxe. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9819 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/output/Notations.out | 4 ++++ test-suite/output/Notations.v | 10 ++++++++++ 2 files changed, 14 insertions(+) (limited to 'test-suite') diff --git a/test-suite/output/Notations.out b/test-suite/output/Notations.out index be4cd4faea..2066a7ef39 100644 --- a/test-suite/output/Notations.out +++ b/test-suite/output/Notations.out @@ -46,3 +46,7 @@ fun x : nat => ifn x is succ n then n else 0 : bool -4 : Z +Nil + : forall A : Type, list A +NIL:list nat + : list nat diff --git a/test-suite/output/Notations.v b/test-suite/output/Notations.v index 3cc0a189d0..6e637aca39 100644 --- a/test-suite/output/Notations.v +++ b/test-suite/output/Notations.v @@ -119,3 +119,13 @@ Require Import ZArith. Open Scope Z_scope. Notation "- 4" := (-2 + -2). Check -4. + +(**********************************************************************) +(* Check notations for references with activated or deactivated *) +(* implicit arguments *) + +Notation Nil := @nil. +Check Nil. + +Notation NIL := nil. +Check NIL : list nat. -- cgit v1.2.3