2018-05-16 01:06:47 +00:00
|
|
|
contract C {
|
2018-06-29 12:55:44 +00:00
|
|
|
function f() public {
|
2018-05-16 01:06:47 +00:00
|
|
|
uint a = (1);
|
2018-07-10 10:36:48 +00:00
|
|
|
(uint b,) = 1;
|
2018-06-11 12:15:27 +00:00
|
|
|
(uint c, uint d) = (1, 2 + a);
|
|
|
|
(uint e,) = (1, 2, b);
|
2018-05-16 01:06:47 +00:00
|
|
|
(a) = 3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2018-07-10 10:36:48 +00:00
|
|
|
// Warning: (54-67): Different number of components on the left hand side (2) than on the right hand side (1).
|
|
|
|
// Warning: (104-125): Different number of components on the left hand side (2) than on the right hand side (3).
|
|
|
|
// Warning: (72-78): Unused local variable.
|
|
|
|
// Warning: (80-86): Unused local variable.
|
|
|
|
// Warning: (105-111): Unused local variable.
|
|
|
|
// Warning: (14-140): Function state mutability can be restricted to pure
|