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

9 lines
178 B
Solidity

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