mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Correct the warning for homonymous, but not shadowing declarations
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user