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

8 lines
190 B
Solidity

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