Make super unavailable in libraries.

This commit is contained in:
chriseth
2020-12-07 13:59:50 +01:00
parent c996d74041
commit b86c91d1a3
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.