aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/dataLocations/memory_storage_data_location.sol
blob: a441b540774627aacc963195f6d174768fcd7cfe (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                                                      
contract C {
    int[] x;
    function f() public {
        int[] storage a = x;
        int[] memory b;
        a = b;
        a = int[](b);
    }
}
// ----
// TypeError: (93-94): Type int256[] memory is not implicitly convertible to expected type int256[] storage pointer.
// TypeError: (102-110): Type int256[] memory is not implicitly convertible to expected type int256[] storage pointer.