mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
332 B
Solidity
15 lines
332 B
Solidity
contract C
|
|
{
|
|
function f() public pure returns (uint a)
|
|
{
|
|
return;
|
|
}
|
|
function g() public pure returns (uint a)
|
|
{
|
|
return (1, 2);
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (73-80): Return arguments required.
|
|
// TypeError: (147-160): Different number of arguments in return statement than in returns declaration.
|