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

6 lines
161 B
Solidity
Raw Normal View History

2020-02-27 15:13:55 +00:00
contract C {
function f(uint immutable) public pure {}
}
// ----
// DeclarationError: (28-42): The "immutable" keyword can only be used for state variables.