2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

Commit missing parts of 6a6d7d.

This commit is contained in:
whitequark 2016-01-05 04:21:46 +00:00
parent 6a6d7dab19
commit e8bba0a7d6

View File

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