2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

Commit missing parts of 5baf18b.

This commit is contained in:
whitequark 2016-01-05 00:16:58 +08:00
parent dfbf55fed2
commit 2955f9a1e0

View File

@ -303,8 +303,8 @@ class StitchingInferencer(Inferencer):
# which would be the optimal solution.
object_type = value_node.type.find()
attr_value_type = None
for object_value, object_loc in self.value_map[object_type]:
attr_value_type = None
if not hasattr(object_value, attr_name):
if attr_name.startswith('_'):
names = set(filter(lambda name: not name.startswith('_'),
@ -412,7 +412,7 @@ class StitchingInferencer(Inferencer):
" different from previously inferred type {typeb} for the same attribute",
{"typea": printer.name(attr_value_type),
"typeb": printer.name(attributes[attr_name]),
"attr": node.attr},
"attr": attr_name},
object_loc)
self.engine.process(diag)