mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
367 B
Solidity
14 lines
367 B
Solidity
contract C {
|
|
uint[] x;
|
|
function() external {
|
|
uint[] memory y = x;
|
|
assembly {
|
|
pop(y_slot)
|
|
pop(y_offset)
|
|
}
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (117-123): The suffixes _offset and _slot can only be used on storage variables.
|
|
// TypeError: (141-149): The suffixes _offset and _slot can only be used on storage variables.
|