test-suite/bugs/bug_13078.v
raw| 1 | (* Check that rules with patterns are not registered for cases patterns *) |
| 2 | Module PrintingTest. |
| 3 | Declare Custom Entry test. |
| 4 | Notation "& x" := (Some x) (in custom test at level 0, x pattern). |
| 5 | Check fun x => match x with | None => None | Some tt => Some tt end. |
| 6 | Notation "& x" := (Some x) (at level 0, x pattern). |
| 7 | Check fun x => match x with | None => None | Some tt => Some tt end. |
| 8 | End PrintingTest. |
| 9 | |
| 10 | Fail Notation "x &" := (Some x) (at level 0, x pattern). |