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