forked from M-Labs/artiq
1
0
Fork 0

transforms.inferencer: fix typo.

This commit is contained in:
whitequark 2015-11-17 00:02:15 +03:00
parent c8cfa7c7bd
commit eefa9e2ea6
1 changed files with 1 additions and 1 deletions

View File

@ -935,7 +935,7 @@ class Inferencer(algorithm.Visitor):
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)},