solidity/test/libsolidity/syntaxTests/tupleAssignments/error_fill.sol
2018-05-08 15:32:36 +01:00

13 lines
395 B
Solidity

pragma experimental "v0.5.0";
contract C {
function f() public pure returns (uint, uint, bytes32) {
uint a;
bytes32 b;
(a,) = f();
(,b) = f();
}
}
// ----
// TypeError: (126-136): Different number of components on the left hand side (2) than on the right hand side (3).
// TypeError: (140-150): Different number of components on the left hand side (2) than on the right hand side (3).