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

14 lines
276 B
Solidity
Raw Normal View History

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