solidity/test/libsolidity/syntaxTests/array/push/calldata_push.sol

8 lines
193 B
Solidity

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