solidity/test/libsolidity/syntaxTests/inlineAssembly/function_call_invalid_argument_count.sol
2021-08-17 12:12:56 +02:00

15 lines
282 B
Solidity

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