solidity/test/libsolidity/syntaxTests/inlineAssembly/function_call_to_variable.sol
2018-07-25 10:45:31 +01:00

12 lines
174 B
Solidity

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