aboutsummaryrefslogtreecommitdiff
path: root/tests/basics/types2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/types2.py')
-rw-r--r--tests/basics/types2.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/basics/types2.py b/tests/basics/types2.py
new file mode 100644
index 000000000..83a69c918
--- /dev/null
+++ b/tests/basics/types2.py
@@ -0,0 +1,12 @@
+# Types are hashable
+print(hash(type) != 0)
+print(hash(int) != 0)
+print(hash(list) != 0)
+class Foo: pass
+print(hash(Foo) != 0)
+
+print(int == int)
+print(int != list)
+
+d = {}
+d[int] = float