Skip to content

Commit c47473a

Browse files
committed
Disable explicit flag for @ operator
1 parent dd44fef commit c47473a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/zxbc/zxbparser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2633,7 +2633,8 @@ def p_addr_of_id(p):
26332633
""" bexpr : ADDRESSOF singleid
26342634
"""
26352635
id_: Id = p[2]
2636-
entry = SYMBOL_TABLE.access_id(id_.name, id_.lineno)
2636+
# Access id. For @ operator we ignore the explicit flag
2637+
entry = SYMBOL_TABLE.access_id(id_.name, id_.lineno, ignore_explicit_flag=True)
26372638
if entry is None:
26382639
p[0] = None
26392640
return

0 commit comments

Comments
 (0)