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

6 lines
185 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 { }
}
// ----
// TypeError: (30-55): Data location has to be "memory" (or unspecified) for constants.