diff options
author | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2017-12-06 10:01:24 +0100 |
---|---|---|
committer | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2018-02-20 10:03:08 +0100 |
commit | 2aff5c40ba9b40b4e0188b799dde6f31585e356b (patch) | |
tree | cb9c33128918e9eb9a3fa45b7521458e5f7c0e48 | |
parent | 79a03d8a491cb153c182c48e2c8a388d682bfcf4 (diff) |
Adding a test for wish #5532.
-rw-r--r-- | test-suite/bugs/closed/5532.v | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/5532.v b/test-suite/bugs/closed/5532.v new file mode 100644 index 000000000..ee5446e54 --- /dev/null +++ b/test-suite/bugs/closed/5532.v @@ -0,0 +1,15 @@ +(* A wish granted by the new support for patterns in notations *) + +Local Notation mkmatch0 e p + := match e with + | p => true + | _ => false + end. +Local Notation "'mkmatch' [[ e ]] [[ p ]]" + := match e with + | p => true + | _ => false + end + (at level 0, p pattern). +Check mkmatch0 _ ((0, 0)%core). +Check mkmatch [[ _ ]] [[ ((0, 0)%core) ]]. |