mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
226 B
Solidity
19 lines
226 B
Solidity
contract C {
|
|
struct I {
|
|
uint b;
|
|
uint c;
|
|
}
|
|
struct S {
|
|
I a;
|
|
}
|
|
|
|
function f() external returns (uint) {
|
|
S memory s = S(I(1,2));
|
|
return s.a.b;
|
|
}
|
|
}
|
|
// ====
|
|
// compileToEwasm: also
|
|
// ----
|
|
// f() -> 1
|