solidity/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol
2018-06-27 19:42:46 -04:00

12 lines
247 B
Solidity

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