solidity/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol
2018-07-03 22:51:55 +02:00

12 lines
256 B
Solidity

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