mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Check partial function parameters if rest is arbitrary.
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
contract C {
|
||||
function f() pure public {
|
||||
abi.encodeWithSelector();
|
||||
abi.encodeWithSignature();
|
||||
abi.encodeWithSelector(uint(2), 2);
|
||||
abi.encodeWithSignature(uint(2), 2);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (52-76): Need at least 1 arguments for function call, but provided only 0.
|
||||
// TypeError: (86-111): Need at least 1 arguments for function call, but provided only 0.
|
||||
// TypeError: (144-151): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes4 requested.
|
||||
// TypeError: (189-196): Invalid type for argument in function call. Invalid implicit conversion from uint256 to string memory requested.
|
||||
Reference in New Issue
Block a user