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

13 lines
158 B
Solidity
Raw Normal View History

2020-03-10 17:15:50 +00:00
contract C {
uint immutable x = 0;
uint y = 0;
function f() readX internal {
}
modifier readX() {
_;
y = x + 1;
}
}