solidity/test/libsolidity/syntaxTests/inlineAssembly/function_call_to_variable.sol

12 lines
174 B
Solidity
Raw Normal View History

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