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

15 lines
290 B
Solidity

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