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

8 lines
186 B
Solidity
Raw Normal View History

contract C {
function f(uint[] calldata x) external {
x.pop();
}
}
// ----
// TypeError: (66-71): Member "pop" is not available in uint256[] calldata outside of storage.