Skip to content

Commit

Permalink
clarify constant structs inference comment
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper authored Feb 16, 2022
1 parent f80aedb commit cf72a13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vyper/ast/folding.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ def replace_user_defined_constants(vyper_module: vy_ast.Module) -> int:
else None
)
except UnknownType:
# Handle structs as user-defined types
# handle user-defined types e.g. structs - it's OK to not
# propagate the type annotation here because user-defined
# types can be unambiguously inferred at typechecking time
type_ = None

changed_nodes += replace_constant(
Expand Down

0 comments on commit cf72a13

Please sign in to comment.