2018-07-05 10:31:46 +00:00
|
|
|
contract C {
|
|
|
|
function f() internal pure {}
|
|
|
|
function g() internal pure returns (uint) { return 1; }
|
|
|
|
function h() internal pure returns (uint, uint) { return (1, 2); }
|
|
|
|
|
|
|
|
function test() internal pure {
|
|
|
|
var () = f();
|
|
|
|
var () = g();
|
|
|
|
var (,) = h();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// SyntaxError 3299: (223-235): The use of the "var" keyword is disallowed. The declaration part of the statement can be removed, since it is empty.
|
|
|
|
// SyntaxError 3299: (245-257): The use of the "var" keyword is disallowed. The declaration part of the statement can be removed, since it is empty.
|
|
|
|
// SyntaxError 3299: (267-280): The use of the "var" keyword is disallowed. The declaration part of the statement can be removed, since it is empty.
|