Skip to content

Commit

Permalink
read folded value from metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Dec 28, 2023
1 parent 93a9b42 commit 14d1e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/semantics/analysis/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def visit(self, node, typ):
node._metadata["type"] = typ

# validate and annotate folded value
folded_value = node.get_folded_value_maybe()
folded_value = node._metadata.get("folded_value")
if folded_value:
validate_expected_type(folded_value, typ)
folded_value._metadata["type"] = typ
Expand Down

0 comments on commit 14d1e09

Please sign in to comment.