Commit fc3506fd authored by gsamain's avatar gsamain

Correct error message for tracked autolocked

parent 9a50e59c
......@@ -1834,7 +1834,7 @@ class LocalScope(Scope):
def declare_autolocked(self, node):
# Add an entry for autolocked cypclass
if not (node.type.is_cyp_class and node.type.lock_mode == "autolock"):
error(pos, "Trying to autolock a non (autolocked) cypclass object !")
error(node.pos, "Trying to autolock a non (autolocked) cypclass object !")
self.autolocked_nodes.append(node)
def declare_var(self, name, type, pos,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment