solidity/test/libsolidity/syntaxTests/immutable/multiple_initializations.sol
2020-07-07 12:16:18 +02:00

10 lines
175 B
Solidity

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