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

16 lines
231 B
Solidity
Raw Normal View History

contract C {
uint8 immutable public a;
uint8 immutable public b = 0x42;
uint public c;
constructor() {
delete a;
delete b;
c = b * 2 + a;
}
}
// ----
// a() -> 0
// b() -> 0
// c() -> 0