vyper Version (output of vyper --version OR linkable commit hash vyperlang/vyper@): vyperlang/vyper@b43fface148b45cbd2c90b5d24f77398a63745b5
Issue Description
In _check_assign_list(), the following code is used to handle static
array assignment:
if isinstance(left.typ, SArrayT):
if not is_array_like(right.typ): # pragma: nocover
FAIL()
if left.typ.count != right.typ.count: # pragma: nocover
FAIL()
# TODO recurse into left, right if literals?
check_assign(
dummy_node_for_type(left.typ.value_type), dummy_node_for_type(right.typ.value_type)
)
the check if not is_array_like(right.typ) could be more precise since
dynamic arrays cannot be assigned to static arrays.
Version Information
vyper --version
OR linkable commit hash vyperlang/vyper@Issue Description
In
_check_assign_list()
, the following code is used to handle static array assignment:the check
if not is_array_like(right.typ)
could be more precise since dynamic arrays cannot be assigned to static arrays.