solidity/test/libsolidity/syntaxTests/parsing/location_specifiers_for_params.sol

7 lines
314 B
Solidity
Raw Normal View History

2018-05-17 07:04:39 +00:00
contract Foo {
function f(uint[] storage constant x, uint[] memory y) internal { }
}
// ----
2020-09-29 14:43:04 +00:00
// DeclarationError 1788: (30-55): The "constant" keyword can only be used for state variables or variables at file level.
2022-01-12 15:30:04 +00:00
// TypeError 9259: (30-55): Only constants of value type and byte array type are implemented.