solidity/test/libsolidity/syntaxTests/parsing/tuples.sol

12 lines
170 B
Solidity
Raw Normal View History

contract C {
2018-07-04 16:35:01 +00:00
function f() public pure {
uint a = (1);
2018-07-04 16:35:01 +00:00
(uint b,) = (1,2);
(uint c, uint d) = (1, 2 + a);
2018-07-04 16:35:01 +00:00
(uint e,) = (1, b);
(a) = 3;
2018-07-04 16:35:01 +00:00
a;b;c;d;e;
}
}
// ----