Skip to content

Commit

Permalink
Commit missing parts of 6a6d7d.
Browse files Browse the repository at this point in the history
whitequark committed Jan 5, 2016
1 parent 6a6d7da commit e8bba0a
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
@@ -1061,7 +1061,7 @@ def makenotes(printer, typea, typeb, loca, locb):
node.optional_vars.loc, node.context_expr.loc,
makenotes=makenotes)

else:
elif not types.is_var(typ):
diag = diagnostic.Diagnostic("error",
"value of type {type} cannot act as a context manager",
{"type": types.TypePrinter().name(typ)},

0 comments on commit e8bba0a

Please sign in to comment.