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

8 lines
188 B
Solidity
Raw Normal View History

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