solidity/test/libsolidity/syntaxTests/immutable/reading_after_initialization_modifier.sol
2020-04-02 13:52:27 +02:00

13 lines
158 B
Solidity

contract C {
uint immutable x = 0;
uint y = 0;
function f() readX internal {
}
modifier readX() {
_;
y = x + 1;
}
}