solidity/test/libsolidity/semanticTests/array/slices/array_calldata_assignment.sol

12 lines
288 B
Solidity
Raw Normal View History

contract C {
function f(uint256[] calldata x, uint256[] calldata y, uint256 i) external returns (uint256) {
x = y;
return x[i];
}
}
// ====
// compileViaYul: also
2021-04-23 15:59:01 +00:00
// compileToEwasm: also
// ----
// f(uint256[],uint256[],uint256): 0x60, 0xA0, 1, 1, 0, 2, 1, 2 -> 2