mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
289 B
Solidity
14 lines
289 B
Solidity
contract C {
|
|
uint immutable public x = 42;
|
|
|
|
function g() external view returns (uint) {}
|
|
|
|
function f() public view returns (uint) {
|
|
return this.x();
|
|
}
|
|
|
|
function h() public view returns (function () external view returns (uint)) {
|
|
return this.x;
|
|
}
|
|
}
|