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

10 lines
177 B
Solidity

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