mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
284 B
Solidity
13 lines
284 B
Solidity
contract C {
|
|
function() external returns (uint, uint) immutable public x = this.f;
|
|
function f() external pure returns (uint, uint) {
|
|
return (1, 2);
|
|
}
|
|
|
|
function test() external returns (uint, uint) {
|
|
return this.x()();
|
|
}
|
|
}
|
|
// ----
|
|
// test() -> 1, 2
|