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

10 lines
177 B
Solidity
Raw Normal View History

2020-03-10 17:15:50 +00:00
contract C {
uint immutable x;
constructor() public {
x = 1;
x = 4;
}
}
// ----
// TypeError: (85-86): Immutable state variable already initialized.