mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
234 B
Plaintext
13 lines
234 B
Plaintext
|
contract C {
|
||
|
uint[] x;
|
||
|
fallback() external {
|
||
|
uint[] storage y = x;
|
||
|
assembly {
|
||
|
y_slot := 1
|
||
|
y_offset := 2
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (138-146): Only _slot can be assigned to.
|