forked from M-Labs/artiq
compiler.types: add missing TTuple.__hash__ implementation.
This commit is contained in:
parent
7e886ddc89
commit
86dea869b3
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user