summaryrefslogtreecommitdiff
path: root/Lib/test/ann_module6.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/ann_module6.py')
-rw-r--r--Lib/test/ann_module6.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/ann_module6.py b/Lib/test/ann_module6.py
new file mode 100644
index 0000000000..679175669b
--- /dev/null
+++ b/Lib/test/ann_module6.py
@@ -0,0 +1,7 @@
+# Tests that top-level ClassVar is not allowed
+
+from __future__ import annotations
+
+from typing import ClassVar
+
+wrong: ClassVar[int] = 1