mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix shadowing error for inline assembly.
This commit is contained in:
+1
-1
@@ -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
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user