aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_assignment.sol
blob: dc7421423ea10ff398ef2d8fe4aa69ad68df4230 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
contract C {
    uint[] x;
    function() external {
        uint[] storage y = x;
        assembly {
            y_slot := 1
            y_offset := 2
        }
    }
}
// ----
// TypeError: (114-120): Storage variables cannot be assigned to.
// TypeError: (138-146): Storage variables cannot be assigned to.