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

9 lines
129 B
Solidity
Raw Normal View History

2020-03-10 17:15:50 +00:00
contract C {
uint immutable x = 1;
function readX() internal pure returns(uint) {
2020-03-10 17:15:50 +00:00
return x + 3;
}
}
// ----