aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/209_storage_assign_to_different_local_variable.sol
blob: aabdcd8808f4e3ed836a0e87cd3831a2baa5157c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                                                               
contract C {
    uint[] data;
    uint8[] otherData;
    function f() public {
        uint8[] storage x = otherData;
        uint[] storage y = data;
        y = x;
        // note that data = otherData works
    }
}
// ----
// TypeError: (163-164): Type uint8[] storage pointer is not implicitly convertible to expected type uint256[] storage pointer.