aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_assignment.sol
blob: d5c8eaf5fddc43355b824ae49d2302fb05ca23b8 (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: (115-121): Storage variables cannot be assigned to.
// TypeError: (139-147): Storage variables cannot be assigned to.