aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/return_var.sol
blob: b9ce8f959bb08f61b9808fd2858557020c0c3ec7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
contract C {
    function f() returns(var) {}
    function f() returns(var x) {}
    function f() returns(var x, uint y) {}
    function f() returns(uint x, var y) {}
    function f() returns(var x, var y) {}
    function f() public pure returns (var storage) {}
    function f() public pure returns (var storage x) {}
    function f() public pure returns (var storage x, var storage y) {}
}
// ----
// ParserError: (38-41): Expected explicit type name.
// ParserError: (71-74): Expected explicit type name.
// ParserError: (106-109): Expected explicit type name.
// ParserError: (157-160): Expected explicit type name.
// ParserError: (192-195): Expected explicit type name.
// ParserError: (199-202): Expected explicit type name.
// ParserError: (247-250): Expected explicit type name.
// ParserError: (251-258): Location specifier needs explicit type name.
// ParserError: (301-304): Expected explicit type name.
// ParserError: (305-312): Location specifier needs explicit type name.
// ParserError: (357-360): Expected explicit type name.
// ParserError: (361-368): Location specifier needs explicit type name.
// ParserError: (372-375): Expected explicit type name.
// ParserError: (376-383): Location specifier needs explicit type name.