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

10 lines
182 B
Solidity

contract C {
uint immutable x;
constructor() public {
x = 1;
x = 4;
}
}
// ----
// TypeError 1574: (85-86): Immutable state variable already initialized.