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

12 lines
260 B
Solidity
Raw Normal View History

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