solidity/test/libsolidity/syntaxTests/immutable/state_var_external_access_read.sol

14 lines
289 B
Solidity
Raw Normal View History

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;
}
}