mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
308 B
Solidity
15 lines
308 B
Solidity
contract C {
|
|
function f(bytes calldata data)
|
|
external
|
|
pure
|
|
returns (uint256, bytes memory r)
|
|
{
|
|
return abi.decode(data, (uint256, bytes));
|
|
}
|
|
}
|
|
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// f(bytes): 0x20, 0x80, 0x21, 0x40, 0x7, "abcdefg" -> 0x21, 0x40, 0x7, "abcdefg"
|