test-suite/bugs/bug_21214.v
raw| 1 | Require Import Ltac2.Ltac2. |
| 2 | |
| 3 | Module Cust. |
| 4 | Ltac2 Custom Entry foo. |
| 5 | End Cust. |
| 6 | Module Nota. |
| 7 | Import Cust. |
| 8 | Ltac2 Notation "bar" c(foo) : foo(0) := c. |
| 9 | End Nota. |
| 10 | Import Nota. |
| 11 | (* error unknown entry foo *) |
| 12 | |
| 13 | Ltac2 Notation "###" : Cust.foo(0) := (). |
| 14 | Ltac2 Notation "foo:(" c(Cust.foo) ")" := c. |
| 15 | |
| 16 | Ltac2 Eval foo:(bar ###). |