solidity/test/libsolidity/syntaxTests/immutable/illegal_names.sol

12 lines
424 B
Solidity

contract C {
uint immutable super;
uint immutable _;
uint immutable this;
}
// ----
// DeclarationError 3726: (17-37): The name "super" is reserved.
// DeclarationError 3726: (43-59): The name "_" is reserved.
// DeclarationError 3726: (65-84): The name "this" is reserved.
// Warning 2319: (17-37): This declaration shadows a builtin symbol.
// Warning 2319: (65-84): This declaration shadows a builtin symbol.