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

15 lines
274 B
Solidity

contract C {
function f() public pure {
assembly {
function f(a) {}
f()
f(1)
f(1, 2)
}
}
}
// ----
// TypeError 7000: (87-88): Function expects 1 arguments but got 0.
// TypeError 7000: (108-109): Function expects 1 arguments but got 2.