Detect assignment to function in inline assembly.

This commit is contained in:
chriseth
2021-02-23 11:47:12 +01:00
parent dd1ae5ba11
commit 9c7b1e9c3f
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.