mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
225 B
Solidity
19 lines
225 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;
|
||
|
}
|
||
|
}
|
||
|
// ====
|
||
|
// compileViaYul: also
|
||
|
// ----
|
||
|
// f() -> 1
|