2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

compiler.types: TDelay is always unifiable with self.

This commit is contained in:
whitequark 2016-02-25 19:56:12 +00:00
parent 919a49b6bc
commit d899d7307e

View File

@ -527,7 +527,7 @@ class TDelay(Type):
elif self.is_fixed() and other.is_fixed() and \
self.duration.fold() == other.duration.fold():
pass
else:
elif self is not other:
raise UnificationError(self, other)
def fold(self, accum, fn):