solidity/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_assignment.sol

13 lines
239 B
Solidity

contract C {
uint[] x;
fallback() external {
uint[] storage y = x;
assembly {
y_slot := 1
y_offset := 2
}
}
}
// ----
// TypeError 9739: (138-146): Only _slot can be assigned to.