mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
7 lines
327 B
Solidity
7 lines
327 B
Solidity
contract A {
|
|
modifier mod1(uint constant a) { _; }
|
|
modifier mod2(uint immutable a) { _; }
|
|
}
|
|
// ----
|
|
// DeclarationError 1788: (31-46): The "constant" keyword can only be used for state variables or variables at file level.
|
|
// DeclarationError 8297: (73-89): The "immutable" keyword can only be used for state variables. |