Merge pull request #4729 from ethereum/slot-on-non-storage

Properly handle invalid references used together with _slot and _offset.
This commit is contained in:
Alex Beregszaszi
2018-08-07 14:16:43 +01:00
committed by GitHub
3 changed files with 17 additions and 1 deletions
@@ -0,0 +1,9 @@
contract C {
function f() pure public {
assembly {
let x := f_slot
}
}
}
// ----
// TypeError: (84-90): The suffixes _offset and _slot can only be used on storage variables.