solidity/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol

12 lines
255 B
Solidity
Raw Normal View History

2018-06-27 23:42:46 +00:00
contract C {
uint[] x;
function() external {
2018-06-27 23:42:46 +00:00
uint[] storage y = x;
assembly {
pop(y)
}
}
}
// ----
// TypeError: (118-119): You have to use the _slot or _offset suffix to access storage reference variables.