2020-03-10 17:15:50 +00:00
|
|
|
contract C {
|
|
|
|
uint immutable x = f();
|
|
|
|
|
|
|
|
function f() public pure returns (uint) { return 3 + x; }
|
|
|
|
}
|
|
|
|
// ----
|
2021-08-05 15:06:19 +00:00
|
|
|
// TypeError 7733: (99-100): Immutable variables cannot be read before they are initialized.
|