aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs
diff options
context:
space:
mode:
authorGravatar Tej Chajed <tchajed@mit.edu>2018-01-25 15:37:43 -0500
committerGravatar Tej Chajed <tchajed@mit.edu>2018-01-26 10:43:05 -0500
commit885307fc52e02d98c48851d0a07e8f9b64d975b0 (patch)
tree4ce8fdd91762b2b5cf5a20edaac31c384e7730dd /test-suite/bugs
parent35a275e22b72abba344b837e7276af8057d5da2c (diff)
Support universe instances on the literal Type
Fixes BZ#5726.
Diffstat (limited to 'test-suite/bugs')
-rw-r--r--test-suite/bugs/closed/5726.v34
1 files changed, 34 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/5726.v b/test-suite/bugs/closed/5726.v
new file mode 100644
index 000000000..53ef47357
--- /dev/null
+++ b/test-suite/bugs/closed/5726.v
@@ -0,0 +1,34 @@
+Set Universe Polymorphism.
+Set Printing Universes.
+
+Module GlobalReference.
+
+ Definition type' := Type.
+ Notation type := type'.
+ Check type@{Set}.
+
+End GlobalReference.
+
+Module TypeLiteral.
+
+ Notation type := Type.
+ Check type@{Set}.
+ Check type@{Prop}.
+
+End TypeLiteral.
+
+Module ExplicitSort.
+ Monomorphic Universe u.
+ Notation foo := Type@{u}.
+ Fail Check foo@{Set}.
+ Fail Check foo@{u}.
+
+ Notation bar := Type.
+ Check bar@{u}.
+End ExplicitSort.
+
+Module PropNotationUnsupported.
+ Notation foo := Prop.
+ Fail Check foo@{Set}.
+ Fail Check foo@{Type}.
+End PropNotationUnsupported.