From 8bbffab8c8f133ac37ba70ba906ef9caedf6f369 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 27 Feb 2016 13:33:28 +0000 Subject: [PATCH] Fix tests. --- artiq/compiler/types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/compiler/types.py b/artiq/compiler/types.py index 0f0819b2a..ec4701852 100644 --- a/artiq/compiler/types.py +++ b/artiq/compiler/types.py @@ -710,6 +710,7 @@ class TypePrinter(object): for attr in typ.attributes]) return "".format(typ.name, attrs) else: + self.recurse_guard.add(typ) return "".format(typ.name) elif isinstance(typ, TMono): if typ.params == {}: @@ -754,6 +755,7 @@ class TypePrinter(object): for attr in typ.attributes]) return "".format(typ.name, attrs) else: + self.recurse_guard.add(typ) return "".format(typ.name) elif isinstance(typ, TBuiltin): return "".format(typ.name)