solidity/test/libsolidity/semanticTests/immutable/complexGetter.sol
2020-04-02 19:09:54 +02:00

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