mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Additional tests for edge cases for mutability, visibility, location, experimental, global, indexed and anonymous
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
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.
|
||||
Reference in New Issue
Block a user