Merge pull request #10506 from ethereum/superInLibs

Make super unavailable in libraries.
This commit is contained in:
chriseth
2020-12-07 14:36:42 +01:00
committed by GitHub
4 changed files with 17 additions and 1 deletions
@@ -0,0 +1,7 @@
contract C {
}
function f() pure {
super;
}
// ----
// DeclarationError 7576: (39-44): Undeclared identifier. "super" is not (or not yet) visible at this point.
@@ -0,0 +1,7 @@
library L {
function f() public {
(super);
}
}
// ----
// DeclarationError 7576: (41-46): Undeclared identifier. "super" is not (or not yet) visible at this point.