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

12 lines
179 B
Solidity
Raw Normal View History

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