solidity/test/libsolidity/syntaxTests/types/var_empty_decl_0.sol

10 lines
377 B
Solidity

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.