test-suite/bugs/bug_6157.v
raw| 1 | (* Check that universe instances of refs are preserved *) |
| 2 | |
| 3 | Section U. |
| 4 | Set Universe Polymorphism. |
| 5 | Definition U@{i} := Type@{i}. |
| 6 | |
| 7 | Section foo. |
| 8 | Universe i. |
| 9 | Fail Check U@{i} : U@{i}. |
| 10 | Notation Ui := U@{i}. (* syndef path *) |
| 11 | Fail Check Ui : Type@{i}. |
| 12 | Notation "#" := U@{i}. (* non-syndef path *) |
| 13 | Fail Check # : Type@{i}. |
| 14 | End foo. |
| 15 | End U. |