mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use .slot and .offest to access storage items.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
contract C {
|
||||
function f() public pure {
|
||||
assembly {
|
||||
let x := _slot
|
||||
let x := .slot
|
||||
}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 4794: (84-89): In variable names _slot and _offset can only be used as a suffix.
|
||||
// ParserError 1856: (84-85): Literal or identifier expected.
|
||||
|
||||
Reference in New Issue
Block a user