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