diff --git a/artiq/compiler/types.py b/artiq/compiler/types.py index e7570d607..9cac1594a 100644 --- a/artiq/compiler/types.py +++ b/artiq/compiler/types.py @@ -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):