Debian Codegraph @

test-suite/bugs/bug_13303.v

raw
1 Module Pt1.
2
3 Module M. Universe i. End M.
4 Module N. Universe i. End N.
5 Import M.
6 Notation foo := Type@{i (* M.i??? *)}.
7 Import N.
8 Fail Check foo : Type@{M.i}. (* should NOT succeed *)
9 Check foo : Type@{i (* N.i *)}. (* should succeed *)
10
11 Definition bar@{i} := Type@{i}.
12 Check bar : Type@{N.i}.
13 Check bar : Type@{M.i}.
14
15 End Pt1.
16
17 Module Pt2.
18
19 Module M. Universe i. Notation foo := Type@{i}. End M.
20
21 Definition foo1 := M.foo.
22 (* should succeed, currently errors undeclared universe i *)
23
24 Definition foo2@{i} : Type@{i} := M.foo.
25 (* should succeed, currently errors universe inconsistency *)
26
27 End Pt2.