Merge pull request #9703 from a3d4/fix-4558-shadowed-declaration-warning

Corrected warning for homonymous, but not shadowing declarations
This commit is contained in:
chriseth
2020-09-15 13:48:55 +02:00
committed by GitHub
4 changed files with 27 additions and 5 deletions
@@ -0,0 +1,6 @@
contract test {
function e() external { }
function f() public pure { uint e; e = 0; }
}
// ----
// Warning 8760: (77-83): This declaration has the same name as another declaration.
@@ -0,0 +1,6 @@
function e() {}
contract test {
function f() pure public { uint e; e = 0; }
}
// ----
// Warning 2519: (63-69): This declaration shadows an existing declaration.