mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
406 B
Solidity
10 lines
406 B
Solidity
contract C {
|
|
function f(int a, int b) public {}
|
|
function failFunctionArgsIntLiteralNestedTuple() public returns(bytes memory) {
|
|
return abi.encodeCall(this.f, ((1,2)));
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 7788: (139-170): Expected 2 instead of 1 components for the tuple parameter.
|
|
// TypeError 5407: (163-168): Cannot implicitly convert component at position 0 from "tuple(int_const 1,int_const 2)" to "int256".
|