Skip to content

Commit

Permalink
transforms.inferencer: fix typo.
Browse files Browse the repository at this point in the history
whitequark committed Nov 16, 2015
1 parent c8cfa7c commit eefa9e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artiq/compiler/transforms/inferencer.py
Original file line number Diff line number Diff line change
@@ -935,7 +935,7 @@ def visit_withitem(self, node):
self.generic_visit(node)

typ = node.context_expr.type
if not types.is_builtin(typ, "parallel") or types.is_builtin(typ, "sequential"):
if not (types.is_builtin(typ, "parallel") or types.is_builtin(typ, "sequential")):
diag = diagnostic.Diagnostic("error",
"value of type {type} cannot act as a context manager",
{"type": types.TypePrinter().name(typ)},

0 comments on commit eefa9e2

Please sign in to comment.