solidity/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol
2020-01-08 16:12:06 +01:00

12 lines
259 B
Solidity

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