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

12 lines
260 B
Solidity

contract C {
uint[] x;
fallback() external {
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.