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

9 lines
173 B
Solidity

contract C {
uint immutable x;
constructor() {
x--;
}
}
// ----
// TypeError 3969: (63-64): Immutable variables must be initialized using an assignment.