forked from M-Labs/artiq
1
0
Fork 0

compiler.types: add missing TTuple.__hash__ implementation.

This commit is contained in:
whitequark 2017-03-03 03:27:49 +00:00 committed by Sebastien Bourdeauducq
parent 90aeb76a2c
commit 37c9b97bc4
1 changed files with 3 additions and 0 deletions

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")