solidity/test/libsolidity/syntaxTests/immutable/reading_after_initialization_modifier.sol
2021-04-20 17:38:29 +02:00

14 lines
166 B
Solidity

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