solidity/test/libsolidity/syntaxTests/parsing/location_specifiers_for_params.sol
2018-05-22 13:25:04 +02:00

6 lines
188 B
Solidity

contract Foo {
function f(uint[] storage constant x, uint[] memory y) internal { }
}
// ----
// TypeError: (30-55): Storage location has to be "memory" (or unspecified) for constants.