aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/213_no_delete_on_storage_pointers.sol
blob: 7a6fb1c7ceb218229be14b967d487b5a8b39f94e (plain) (tree)
1
2
3
4
5
6
7
8
9


                         
                                



                 
                                                                                                 
contract C {
    uint[] data;
    function f() public {
        uint[] storage x = data;
        delete x;
    }
}
// ----
// TypeError: (97-105): Unary operator delete cannot be applied to type uint256[] storage pointer