mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
259 B
Solidity
10 lines
259 B
Solidity
|
contract C {
|
||
|
uint[] r;
|
||
|
function f() internal view returns (uint[] storage s) {
|
||
|
assembly { pop(s_slot) }
|
||
|
s = r;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (92-126): This variable is of storage pointer type and can be accessed without prior assignment.
|