forked from M-Labs/artiq
1
0
Fork 0

compiler.types: dump type variable iodelay explicitly.

This commit is contained in:
whitequark 2015-11-17 00:51:56 +03:00
parent e67705dc27
commit a2d73c8b05
1 changed files with 3 additions and 2 deletions

View File

@ -623,8 +623,9 @@ class TypePrinter(object):
signature = "(%s)->%s" % (", ".join(args), self.name(typ.ret)) signature = "(%s)->%s" % (", ".join(args), self.name(typ.ret))
delay = typ.delay.find() delay = typ.delay.find()
if not (isinstance(delay, TVar) or if isinstance(delay, TVar):
delay.is_fixed() and iodelay.is_zero(delay.duration)): signature += " delay({})".format(self.name(delay))
elif not (delay.is_fixed() and iodelay.is_zero(delay.duration)):
signature += " " + self.name(delay) signature += " " + self.name(delay)
if isinstance(typ, TRPCFunction): if isinstance(typ, TRPCFunction):