mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
309 B
Solidity
20 lines
309 B
Solidity
pragma experimental ABIEncoderV2;
|
|
|
|
|
|
contract C {
|
|
struct S {
|
|
uint256 a;
|
|
uint256 b;
|
|
}
|
|
|
|
function f(S calldata s) external pure returns (uint256 a, uint256 b) {
|
|
a = s.a;
|
|
b = s.b;
|
|
}
|
|
}
|
|
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// f((uint256,uint256)): 42, 23 -> 42, 23
|