solidity/test/libsolidity/syntaxTests/constants/immutable_at_file_level.sol
2020-10-08 18:56:18 +02:00

5 lines
211 B
Solidity

uint immutable x = 7;
// ----
// DeclarationError 8342: (0-20): Only constant variables are allowed at file level.
// DeclarationError 8297: (0-20): The "immutable" keyword can only be used for state variables.