Skip to content

Lift restriction on calldata variables shadowing storage variables#2226

Merged
fubuloubu merged 2 commits into
vyperlang:masterfrom
iamdefinitelyahuman:fix-calldata-shadow
Nov 27, 2020
Merged

Lift restriction on calldata variables shadowing storage variables#2226
fubuloubu merged 2 commits into
vyperlang:masterfrom
iamdefinitelyahuman:fix-calldata-shadow

Conversation

@iamdefinitelyahuman

Copy link
Copy Markdown
Contributor

What I did

Lift a restriction preventing calldata variable names from shadowing storage variable names.

Related to #2166
Fixes #2219

How I did it

Remove the checks in context and parser subpackages.

How to verify it

Run tests.

Cute Animal Picture

image

@codecov-io

codecov-io commented Nov 26, 2020

Copy link
Copy Markdown

Codecov Report

Merging #2226 (6af6fa2) into master (3667bc5) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2226      +/-   ##
==========================================
+ Coverage   85.32%   85.34%   +0.01%     
==========================================
  Files          84       84              
  Lines        8533     8528       -5     
  Branches     2064     2061       -3     
==========================================
- Hits         7281     7278       -3     
+ Misses        745      744       -1     
+ Partials      507      506       -1     
Impacted Files Coverage Δ
vyper/context/types/function.py 83.75% <ø> (-0.21%) ⬇️
...er/function_definitions/parse_external_function.py 97.82% <ø> (+2.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3667bc5...6af6fa2. Read the comment docs.

Comment thread tests/parser/exceptions/test_namespace_collision.py
@fubuloubu fubuloubu merged commit cb06a06 into vyperlang:master Nov 27, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix-calldata-shadow branch December 4, 2020 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calldata variables cannot shadow storage variables

3 participants