Use yul::AstWalker to resolve assembly symbols

This commit is contained in:
Mathias Baumann
2020-01-28 17:57:48 +01:00
committed by Mathias Baumann
parent 0dd398e2ac
commit b8e2baf5f4
8 changed files with 468 additions and 83 deletions
@@ -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.