Fix shadowing error for inline assembly.

This commit is contained in:
chriseth
2021-08-17 12:12:56 +02:00
parent 838514a718
commit aeb2438eab
25 changed files with 67 additions and 56 deletions
@@ -1,7 +1,7 @@
contract C {
struct S { bool f; }
S s;
function f() internal pure {
function g() internal pure {
S storage c;
// this should warn about unreachable code, but currently function flow is ignored
assembly {
@@ -1,7 +1,7 @@
contract C {
struct S { bool f; }
S s;
function f() internal pure {
function g() internal pure {
S storage c;
// this could be allowed, but currently control flow for functions is not analysed
assembly {