Do not crash on using _slot and _offset suffixes on their own

This commit is contained in:
Alex Beregszaszi
2018-08-07 12:14:12 +01:00
parent d33e5683f5
commit 296ba24f7f
4 changed files with 24 additions and 0 deletions
@@ -0,0 +1,9 @@
contract C {
function f() public pure {
assembly {
_offset
}
}
}
// ----
// DeclarationError: (75-82): In variable names _slot and _offset can only be used as a suffix.
@@ -0,0 +1,9 @@
contract C {
function f() public pure {
assembly {
_slot
}
}
}
// ----
// DeclarationError: (75-80): In variable names _slot and _offset can only be used as a suffix.