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,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.
|
||||
|
||||
Reference in New Issue
Block a user