solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/246_multi_variable_declaration_wildcards_fail_5.sol

7 lines
251 B
Solidity
Raw Normal View History

contract C {
function one() public returns (uint);
function f() public { var (,) = one(); }
}
// ----
// TypeError: (81-96): Wildcard both at beginning and end of variable declaration list is only allowed if the number of components is equal.