solidity/test/libsolidity/semanticTests/array/calldata_array.sol
2023-05-11 10:56:55 -05:00

16 lines
249 B
Solidity

pragma abicoder v2;
contract C {
function f(uint256[2] calldata s)
external
pure
returns (uint256 a, uint256 b)
{
a = s[0];
b = s[1];
}
}
// ----
// f(uint256[2]): 42, 23 -> 42, 23