From 754dc0848ac5c48fc92363a6c2acc7f6ada76e32 Mon Sep 17 00:00:00 2001 From: Pierre-Marie Pédrot Date: Sat, 13 Mar 2021 14:32:13 +0100 Subject: Allow scope delimiters in Ltac2 open_constr:(...) quotation. Fixes #12806: Ltac2 Notation's open_constr should accept scope stacks. --- test-suite/bugs/closed/bug_12806.v | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test-suite/bugs/closed/bug_12806.v (limited to 'test-suite') diff --git a/test-suite/bugs/closed/bug_12806.v b/test-suite/bugs/closed/bug_12806.v new file mode 100644 index 0000000000..ee221d33a6 --- /dev/null +++ b/test-suite/bugs/closed/bug_12806.v @@ -0,0 +1,9 @@ +Require Import Ltac2.Ltac2. + +Declare Scope my_scope. +Delimit Scope my_scope with my_scope. + +Notation "###" := tt : my_scope. + +Ltac2 Notation "bar" c(open_constr(my_scope)) := c. +Ltac2 Eval bar ###. -- cgit v1.2.3