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

8 lines
318 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 { }
}
// ----
2018-08-07 17:12:49 +00:00
// DeclarationError: (30-55): The "constant" keyword can only be used for state variables.
// TypeError: (30-55): Constants of non-value type not yet implemented.
// TypeError: (30-55): Uninitialized "constant" variable.