aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/returnExpressions/single_return_mismatching_number.sol
blob: 9741fdfba15a53d4f00fccc9003f8bcb5e3ae170 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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.