solidity/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol
2018-08-01 21:57:12 +02:00

12 lines
255 B
Solidity

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