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

6 lines
183 B
Solidity

contract C {
function f(uint immutable) public pure {}
}
// ----
// DeclarationError 8297: (28-42='uint immutable'): The "immutable" keyword can only be used for state variables.