Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Typechecks for default parameters and int arrays #1596
What I did
@public def foo(): a: uint256 = [-1, -1]
How I did it
How to verify it
I added test cases for default parameters and array assignment.
Cute Animal Picture
I like this code, but note that the method for typechecking is (slightly) different than the approach in ann_assign: https://github.com/ethereum/vyper/blob/ab39d4e9c5168eff2646dd29e23d7212654b636d/vyper/parser/stmt.py#L141-L151
I am good merging this so long as we add a note to this effect since we should reify the two code paths at some point.
OK I take it back.. There are a lot of type checks happening in