From f75e1b5d8a4f679c839ffa327baa590198c69640 Mon Sep 17 00:00:00 2001 From: Kenji Maillard Date: Mon, 4 Nov 2019 23:29:40 +0100 Subject: Prevent redefinition of Ltac2 types; fix #10097 --- test-suite/bugs/closed/bug_10097.v | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test-suite/bugs/closed/bug_10097.v (limited to 'test-suite') diff --git a/test-suite/bugs/closed/bug_10097.v b/test-suite/bugs/closed/bug_10097.v new file mode 100644 index 0000000000..12f2d4cc58 --- /dev/null +++ b/test-suite/bugs/closed/bug_10097.v @@ -0,0 +1,14 @@ +From Ltac2 Require Import Ltac2. + +(* #10097 *) +Ltac2 Type s := [X(int)]. +Fail Ltac2 Type s. +Fail Ltac2 Type s := []. + +Ltac2 Type r := [..]. +Fail Ltac2 Type r := []. + +Module Other. + Ltac2 Type s. + Ltac2 Type r := []. +End Other. -- cgit v1.2.3