diff options
| author | Hugo Herbelin | 2018-07-29 02:39:32 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2018-07-29 02:40:22 +0200 |
| commit | 33d86118c7d1bfba31008b410d81c7f45dbdf092 (patch) | |
| tree | 965ad6572c652a0358e497e0d400ba7e1841833e | |
| parent | 67d8e853b1fff3f30949c7634640409bd557685f (diff) | |
A test on the different ways to indicate the levels of a rule.
This is in preparation of changes in level_eq, to check that the
semantics is preserved.
| -rw-r--r-- | test-suite/success/Notations2.v | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test-suite/success/Notations2.v b/test-suite/success/Notations2.v index 7c2cf3ee52..d01ebfb18e 100644 --- a/test-suite/success/Notations2.v +++ b/test-suite/success/Notations2.v @@ -126,3 +126,11 @@ Notation "'myexists' x , p" := (ex (fun x => p)) (at level 200, x ident, p at level 200, right associativity) : type_scope. Check myexists I, I = 0. (* Should not be seen as a constructor *) End M14. + +(* 15. Testing different ways to give the same levels without failing *) + +Module M15. + Local Notation "###### x" := (S x) (right associativity, at level 79, x at next level). + Fail Local Notation "###### x" := (S x) (right associativity, at level 79). + Local Notation "###### x" := (S x) (at level 79). +End M15. |
