mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
239 B
Solidity
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.
|