mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #10992 from ethereum/detectAssignToFunction
Detect assignment to function in inline assembly.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
contract C {
|
||||
function f() public pure {
|
||||
assembly {
|
||||
function f() {}
|
||||
f := 1
|
||||
}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 2657: (103-104): Assignment requires variable.
|
||||
Reference in New Issue
Block a user