solidity/test/libsolidity/syntaxTests/inlineAssembly/invalid/assignment_to_function.sol

11 lines
196 B
Solidity

contract C {
function f() public pure {
assembly {
function f() {}
f := 1
}
}
}
// ----
// TypeError 2657: (103-104): Assignment requires variable.