Debian Codegraph @

test-suite/bugs/bug_11046.v

raw
1 From Ltac2 Require Import Ltac2.
2
3 Ltac2 Type t := [..].
4 Ltac2 Type t ::= [A(int)].
5
6 (* t cannot be extended with two constructors with the same name *)
7 Fail Ltac2 Type t ::= [A(bool)].
8 Fail Ltac2 Type t ::= [B | B(bool)].
9
10 (* constructors cannot be shadowed in the same module *)
11 Fail Ltac2 Type s := [A].
12
13 (* constructors with the same name can be defined in distinct modules *)
14 Module Other.
15 Ltac2 Type t ::= [A(bool)].
16 End Other.
17 Module YetAnother.
18 Ltac2 Type t := [A].
19 End YetAnother.