mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
274 B
Solidity
11 lines
274 B
Solidity
contract C {
|
|
function f(bytes calldata data) external pure returns (uint256[] memory) {
|
|
return abi.decode(data, (uint256[]));
|
|
}
|
|
}
|
|
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// f(bytes): 0x20, 0xc0, 0x20, 0x4, 0x3, 0x4, 0x5, 0x6 -> 0x20, 0x4, 0x3, 0x4, 0x5, 0x6
|