mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7817 from ethereum/bail-on-shadowing-state-vars
Report error on shadowing state variables
This commit is contained in:
@@ -2,12 +2,10 @@ pragma experimental SMTChecker;
|
||||
|
||||
contract Base1 {
|
||||
uint x;
|
||||
uint private t;
|
||||
}
|
||||
|
||||
contract Base2 is Base1 {
|
||||
uint z;
|
||||
uint private t;
|
||||
}
|
||||
|
||||
contract C is Base2 {
|
||||
|
||||
Reference in New Issue
Block a user