aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/types/var_empty_decl_0.sol
blob: 51b949defea4b4972dc65aafacd5cbdd013d63f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
contract C {
    function f() public pure {
        var ();
        var (,);
    }
}
// ----
// SyntaxError: (52-58): The use of the "var" keyword is disallowed. The declaration part of the statement can be removed, since it is empty.
// SyntaxError: (68-75): The use of the "var" keyword is disallowed. The declaration part of the statement can be removed, since it is empty.