aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/returnExpressions/valid_returns.sol
blob: e30f9173d2599e8b9b36abb9558295bad6022c60 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                       
contract C
{
    function f() public pure {
        return;
    }
    function g() public pure returns (uint) {
        return 1;
    }
    function h() public pure returns (uint a) {
        return 1;
    }
    function i() public pure returns (uint, uint) {
        return (1, 2);
    }
    function j() public pure returns (uint a, uint b) {
        return (1, 2);
    }
}