This commit is contained in:
Daniel Kirchner
2020-03-24 16:45:31 +01:00
committed by chriseth
parent 04d8ad2ae1
commit e255c15227
8 changed files with 229 additions and 38 deletions
@@ -0,0 +1,15 @@
contract C {
function() internal view returns(uint256) immutable z;
constructor() public {
z = f;
}
function f() public view returns (uint256) {
return 7;
}
function callZ() public view returns (uint) {
return z();
}
}
// ----
// f() -> 7
// callZ() -> 7