mirror of https://github.com/m-labs/artiq.git
compiler.types: make TValue hashable.
This commit is contained in:
parent
3fbee2707b
commit
f4b19fee5c
|
@ -491,6 +491,9 @@ class TValue(Type):
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
return not (self == other)
|
return not (self == other)
|
||||||
|
|
||||||
|
def __hash__(self):
|
||||||
|
return hash(self.value)
|
||||||
|
|
||||||
class TDelay(Type):
|
class TDelay(Type):
|
||||||
"""
|
"""
|
||||||
The type-level representation of IO delay.
|
The type-level representation of IO delay.
|
||||||
|
|
Loading…
Reference in New Issue