2020-11-23 18:06:44 +00:00
|
|
|
pragma abicoder v2;
|
2020-03-09 21:14:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
|
|
|
// f((uint256,uint256)): 42, 23 -> 42, 23
|