Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 529 Bytes

Shadowing.md

File metadata and controls

21 lines (19 loc) · 529 Bytes

106 - Shadowing

This is considered as an error.

A derived contract can only declare a state variable x, if there is no visible state variable with the same name in any of its bases.


Slide Screenshot

106.jpg


Slide Text

  • State Variable Shadowing
  • Base -> State Var x
  • Derived X -> State Var x
  • Derived -> Any Base
    • No Visible State Vars
  • Shadowing -> Error

References


Tags