Merge pull request #10992 from ethereum/detectAssignToFunction

Detect assignment to function in inline assembly.
This commit is contained in:
Harikrishnan Mulackal
2021-02-23 13:26:45 +01:00
committed by GitHub
2 changed files with 13 additions and 5 deletions
@@ -0,0 +1,10 @@
contract C {
function f() public pure {
assembly {
function f() {}
f := 1
}
}
}
// ----
// TypeError 2657: (103-104): Assignment requires variable.