mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #10506 from ethereum/superInLibs
Make super unavailable in libraries.
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user