solidity/test/libsolidity/semanticTests/structs/global.sol
2023-05-11 10:56:55 -05:00

11 lines
240 B
Solidity

pragma abicoder v2;
struct S { uint256 a; uint256 b; }
contract C {
function f(S calldata s) external pure returns (uint256, uint256) {
return (s.a, s.b);
}
}
// ----
// f((uint256,uint256)): 42, 23 -> 42, 23