From 70d557994583bd081787e28f68d627a0833eb9c0 Mon Sep 17 00:00:00 2001 From: Jasper Hugunin Date: Mon, 2 Nov 2020 17:08:25 -0800 Subject: Remember universe instances of constants in notations --- test-suite/bugs/closed/bug_6157.v | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test-suite/bugs/closed/bug_6157.v (limited to 'test-suite') diff --git a/test-suite/bugs/closed/bug_6157.v b/test-suite/bugs/closed/bug_6157.v new file mode 100644 index 0000000000..cd24e4c7ee --- /dev/null +++ b/test-suite/bugs/closed/bug_6157.v @@ -0,0 +1,15 @@ +(* Check that universe instances of refs are preserved *) + +Section U. +Set Universe Polymorphism. +Definition U@{i} := Type@{i}. + +Section foo. +Universe i. +Fail Check U@{i} : U@{i}. +Notation Ui := U@{i}. (* syndef path *) +Fail Check Ui : Type@{i}. +Notation "#" := U@{i}. (* non-syndef path *) +Fail Check # : Type@{i}. +End foo. +End U. -- cgit v1.2.3