forked from M-Labs/artiq
compiler.types: dump type variable iodelay explicitly.
This commit is contained in:
parent
e67705dc27
commit
a2d73c8b05
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue