2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

compiler.types: add missing TTuple.__hash__ implementation.

This commit is contained in:
whitequark 2017-03-03 03:27:49 +00:00
parent 7e886ddc89
commit 86dea869b3

View File

@ -194,6 +194,9 @@ class TTuple(Type):
def __ne__(self, other):
return not (self == other)
def __hash__(self):
return hash(tuple(self.elts))
class _TPointer(TMono):
def __init__(self):
super().__init__("pointer")