solidity/test/libsolidity/semanticTests/structs/global.sol
2020-07-02 16:37:20 +02:00

13 lines
271 B
Solidity

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