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.