From 6d7ee3b6267ef0d5bd3367d9230d9a4849aa42aa Mon Sep 17 00:00:00 2001 From: herbelin Date: Sun, 18 Dec 2011 22:11:29 +0000 Subject: Fixing bug #2634 (unscoped notations were disturbing the interpretation order of scoped notations). git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14819 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/success/Notations.v | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test-suite') diff --git a/test-suite/success/Notations.v b/test-suite/success/Notations.v index ddad217b32..f5f5a9d14c 100644 --- a/test-suite/success/Notations.v +++ b/test-suite/success/Notations.v @@ -75,3 +75,14 @@ End B. (* Should succeed *) Definition n := 5 * 5. + +(* Check that lonely notations (here FOO) do not modify the visibility + of scoped interpretations (bug #2634 fixed in r14819) *) + +Notation "x ++++ y" := (mult x y) (at level 40). +Notation "x ++++ y" := (plus x y) : A_scope. +Open Scope A_scope. +Notation "'FOO' x" := (S x) (at level 40). +Goal (2 ++++ 3) = 5. +reflexivity. +Abort. -- cgit v1.2.3