2020-06-24 16:14:29 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2020-06-24 16:14:29 +00:00
|
|
|
// ----
|
|
|
|
// f() -> 1
|