solidity/test/libsolidity/syntaxTests/array/pop/memory_pop.sol
2020-01-08 16:12:06 +01:00

9 lines
192 B
Solidity

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