test-suite/bugs/bug_5532.v
raw| 1 | (* A wish granted by the new support for patterns in notations *) |
| 2 | |
| 3 | Local Notation mkmatch0 e p |
| 4 | := match e with |
| 5 | | p => true |
| 6 | | _ => false |
| 7 | end. |
| 8 | Local Notation "'mkmatch' [[ e ]] [[ p ]]" |
| 9 | := match e with |
| 10 | | p => true |
| 11 | | _ => false |
| 12 | end |
| 13 | (at level 0, p pattern). |
| 14 | Check mkmatch0 _ ((0, 0)%core). |
| 15 | Check mkmatch [[ _ ]] [[ ((0, 0)%core) ]]. |