solidity/test/libsolidity/syntaxTests/array/pop/memory_pop.sol

9 lines
190 B
Solidity
Raw Normal View History

contract C {
function f() public {
uint[] memory x;
x.pop();
}
}
// ----
// TypeError: (72-77): Member "pop" is not available in uint256[] memory outside of storage.