solidity/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol
2018-06-28 16:45:53 -04:00

12 lines
254 B
Solidity

contract C {
uint[] x;
function() public {
uint[] storage y = x;
assembly {
pop(y)
}
}
}
// ----
// TypeError: (117-118): You have to use the _slot or _offset suffix to access storage reference variables.