solidity/test/libsolidity/syntaxTests/inlineAssembly/function_call_to_variable.sol
2022-04-01 23:41:18 -05:00

12 lines
183 B
Solidity

contract C {
function f() public pure {
assembly {
let x := 1
x()
}
}
}
// ----
// TypeError 4202: (81-82='x'): Attempt to call variable instead of function.