solidity/test/libsolidity/syntaxTests/duplicateFunctions/illegal_names_functions.sol
2022-04-01 23:41:18 -05:00

18 lines
570 B
Solidity

contract C {
function _() internal returns(uint) {
return 1;
}
function super() internal {
}
function this() internal {
}
}
// ----
// DeclarationError 3726: (17-78): The name "_" is reserved.
// DeclarationError 3726: (84-117): The name "super" is reserved.
// DeclarationError 3726: (123-155='function this() internal { }'): The name "this" is reserved.
// Warning 2319: (84-117): This declaration shadows a builtin symbol.
// Warning 2319: (123-155='function this() internal { }'): This declaration shadows a builtin symbol.