Skip to content

Commit

Permalink
Correct test of NameScope for VDM++ state updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Oct 26, 2024
1 parent 229cef1 commit 5005284
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public TCNameSet caseVariableExpression(POVariableExpression node, Boolean updat
{
TCNameSet all = newCollection();

if (!updates && node.vardef.nameScope == NameScope.STATE)
if (!updates && node.vardef.nameScope.matches(NameScope.STATE))
{
all.add(node.name);
}
Expand Down

0 comments on commit 5005284

Please sign in to comment.