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,8 +1,8 @@
contract C {
function f() public pure {
assembly {
function f() {}
f := 1
function g() {}
g := 1
}
}
}
@@ -1,5 +1,5 @@
contract C {
function f() public pure {
function g() public pure {
assembly {
function f(a., x.b) -> t.b, b.. {}
}
@@ -1,5 +1,5 @@
contract C {
function f() public pure {
function g() public pure {
assembly {
function f() -> x, y, z {}
let a., aa.b := f()
@@ -49,7 +49,5 @@ contract C {
// DeclarationError 4113: (595-600): The identifier name "super" is reserved.
// DeclarationError 4113: (645-646): The identifier name "_" is reserved.
// DeclarationError 4113: (759-763): The identifier name "this" is reserved.
// DeclarationError 3859: (759-763): This declaration shadows a declaration outside the inline assembly block.
// DeclarationError 4113: (785-790): The identifier name "super" is reserved.
// DeclarationError 3859: (785-790): This declaration shadows a declaration outside the inline assembly block.
// DeclarationError 4113: (812-813): The identifier name "_" is reserved.