mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
414 B
Solidity
14 lines
414 B
Solidity
|
contract C {
|
||
|
uint[] x;
|
||
|
fallback() external {
|
||
|
uint[] storage y = x;
|
||
|
assembly {
|
||
|
pop(y_slot)
|
||
|
pop(y_offset)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// DeclarationError 9467: (118-124): Identifier not found. Use ``.slot`` and ``.offset`` to access storage variables.
|
||
|
// DeclarationError 9467: (142-150): Identifier not found. Use ``.slot`` and ``.offset`` to access storage variables.
|