solidity/test/libsolidity/semanticTests/abiEncoderV1/abi_decode_fixed_arrays.sol
2020-11-10 16:37:26 +01:00

11 lines
325 B
Solidity

contract C {
function f(uint16[3] memory a, uint16[2][3] memory b, uint i, uint j, uint k)
public pure returns (uint, uint) {
return (a[i], b[j][k]);
}
}
// ====
// compileViaYul: also
// ----
// f(uint16[3],uint16[2][3],uint256,uint256,uint256): 1, 2, 3, 11, 12, 21, 22, 31, 32, 1, 2, 1 -> 2, 32