Make shadowing of inherited state variables an error.

This commit is contained in:
Christian Parpart
2019-12-03 21:20:03 +01:00
committed by Leonardo Alt
parent b5d3b95307
commit 7bbdfe070f
16 changed files with 31 additions and 91 deletions
+4
View File
@@ -38,6 +38,10 @@ This section lists purely syntactic changes that do not affect the behavior of e
If the name contains a dot, its prefix up to the dot may not conflict with any declaration outside the inline
assembly block.
* State variable shadowing is now disallowed. 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.
Semantic Only Changes
=====================