solidity/test/libsolidity/semanticTests/array/calldata_array.sol
2020-03-19 14:42:25 +01:00

17 lines
250 B
Solidity

pragma experimental ABIEncoderV2;
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