solidity/test/libsolidity/syntaxTests/types/empty_tuple_lvalue.sol
Daniel Kirchner ad47fe23c1 Update tests.
2018-07-10 15:28:05 +02:00

14 lines
413 B
Solidity

pragma solidity ^0.4.3;
contract C {
function f() private pure {}
function a() public {
uint x;
uint y;
(x, y) = (f(), f());
}
}
// ----
// TypeError: (146-149): Tuple component cannot be empty.
// TypeError: (151-154): Tuple component cannot be empty.
// TypeError: (145-155): Type tuple(tuple(),tuple()) is not implicitly convertible to expected type tuple(uint256,uint256).