solidity/test/libsolidity/syntaxTests/memberLookup/push_on_memory_types.sol

9 lines
200 B
Solidity

contract Test {
function f() public pure {
uint[] memory x;
x.push(1);
}
}
// ----
// TypeError 4994: (77-83): Member "push" is not available in uint256[] memory outside of storage.