solidity/test/libsolidity/syntaxTests/returnExpressions/single_return_mismatching_number.sol
2018-08-07 20:49:52 +02:00

15 lines
328 B
Solidity

contract C
{
function f() public pure returns (uint)
{
return;
}
function g() public pure returns (uint)
{
return (1, 2);
}
}
// ----
// TypeError: (71-78): Return arguments required.
// TypeError: (143-156): Different number of arguments in return statement than in returns declaration.