mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
391 B
Solidity
20 lines
391 B
Solidity
pragma abicoder v2;
|
|
|
|
struct S {
|
|
uint x;
|
|
uint y;
|
|
}
|
|
|
|
contract C {
|
|
function f(S calldata s) internal pure returns (uint, uint) {
|
|
return (s.x, s.y);
|
|
}
|
|
function f(uint, S calldata s, uint) external pure returns (uint, uint) {
|
|
return f(s);
|
|
}
|
|
}
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// f(uint256,(uint256,uint256),uint256): 7, 1, 2, 4 -> 1, 2
|