mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
254 B
Solidity
19 lines
254 B
Solidity
pragma experimental ABIEncoderV2;
|
|
|
|
contract C {
|
|
struct S {
|
|
uint256 a;
|
|
bool x;
|
|
}
|
|
|
|
function s() public returns(S memory)
|
|
{
|
|
return S({x: true, a: 8});
|
|
}
|
|
}
|
|
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// s() -> 8, true
|