mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use yul::AstWalker to resolve assembly symbols
This commit is contained in:
committed by
Mathias Baumann
parent
0dd398e2ac
commit
b8e2baf5f4
@@ -0,0 +1,12 @@
|
||||
contract C {
|
||||
function f() public pure returns (uint x) {
|
||||
assembly {
|
||||
function f1() {
|
||||
function f2() { }
|
||||
x := 2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (130-131): Cannot access local Solidity variables from inside an inline assembly function.
|
||||
Reference in New Issue
Block a user