mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-29 05:03:34 +08:00
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))
|
||||
|
||||
delay = typ.delay.find()
|
||||
if not (isinstance(delay, TVar) or
|
||||
delay.is_fixed() and iodelay.is_zero(delay.duration)):
|
||||
if isinstance(delay, TVar):
|
||||
signature += " delay({})".format(self.name(delay))
|
||||
elif not (delay.is_fixed() and iodelay.is_zero(delay.duration)):
|
||||
signature += " " + self.name(delay)
|
||||
|
||||
if isinstance(typ, TRPCFunction):
|
||||
|
Loading…
Reference in New Issue
Block a user