Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 736 Bytes

Variable_Shadowing.md

File metadata and controls

5 lines (4 loc) · 736 Bytes

Variable shadowing occurs when a variable declared within a certain scope (decision block, method, or inner class) has the same name as a variable declared in an outer scope. If multiple variables with the same name are declared in different scopes, there may be unintended effects. This is easy to miss in the case where a contract inherits from a contract implemented in a separate file.