mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
270 B
Solidity
11 lines
270 B
Solidity
|
contract C {
|
||
|
uint[] data;
|
||
|
function f() public {
|
||
|
var x = data;
|
||
|
delete x;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (64-69): Use of the "var" keyword is deprecated.
|
||
|
// TypeError: (86-94): Unary operator delete cannot be applied to type uint256[] storage pointer
|