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

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.