aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/240_multi_variable_declaration_wildcards_fail_1.sol
blob: 0ccbb327db0b30a61e86e32e762cc0b955c122e4 (plain) (blame)
1
2
3
4
5
6
7
contract C {
    function one() public returns (uint);
    function f() public { (uint a, uint b, ) = one(); }
}
// ----
// Warning: (81-107): Different number of components on the left hand side (3) than on the right hand side (1).
// TypeError: (81-107): Not enough components (1) in value to assign all variables (2).