Skip to content

Commit

Permalink
compiler: fix tests.
Browse files Browse the repository at this point in the history
whitequark committed Dec 10, 2015
1 parent 2d906da commit 25027f6
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions artiq/compiler/types.py
Original file line number Diff line number Diff line change
@@ -733,6 +733,8 @@ def name(self, typ):
attrs = ", ".join(["{}: {}".format(attr, self.name(typ.attributes[attr]))
for attr in typ.attributes])
return "<constructor {} {{{}}}>".format(typ.name, attrs)
elif isinstance(typ, TBuiltin):
return "<builtin {}>".format(typ.name)
elif isinstance(typ, TValue):
return repr(typ.value)
elif isinstance(typ, TDelay):
2 changes: 1 addition & 1 deletion lit-test/test/inferencer/with.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# RUN: %python -m artiq.compiler.testbench.inferencer %s >%t
# RUN: OutputCheck %s --file-to-check=%t

# CHECK-L: as x:<function parallel>
# CHECK-L: as x:<builtin parallel>
with parallel as x: pass

0 comments on commit 25027f6

Please sign in to comment.