2018-05-30 16:41:34 +00:00
|
|
|
contract C {
|
|
|
|
function three() public returns (uint, uint, uint);
|
|
|
|
function two() public returns (uint, uint);
|
|
|
|
function none();
|
|
|
|
function f() public {
|
2018-06-11 12:15:27 +00:00
|
|
|
(uint a,) = three();
|
|
|
|
(uint b, uint c,) = two();
|
|
|
|
(,uint d) = three();
|
|
|
|
(,uint e, uint g) = two();
|
2018-05-30 16:41:34 +00:00
|
|
|
var (,,) = three();
|
|
|
|
var () = none();
|
|
|
|
a;b;c;d;e;g;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2018-06-11 12:15:27 +00:00
|
|
|
// Warning: (172-191): Different number of components on the left hand side (2) than on the right hand side (3).
|
|
|
|
// Warning: (201-226): Different number of components on the left hand side (3) than on the right hand side (2).
|
|
|
|
// Warning: (236-255): Different number of components on the left hand side (2) than on the right hand side (3).
|
|
|
|
// Warning: (265-290): Different number of components on the left hand side (3) than on the right hand side (2).
|
2018-05-30 16:41:34 +00:00
|
|
|
// Warning: (121-137): No visibility specified. Defaulting to "public".
|