solidity/test/libsolidity/syntaxTests/types/empty_tuple_lvalue_array.sol
2018-07-31 00:12:42 +01:00

11 lines
207 B
Solidity

contract C {
function f() private pure {}
function a() public {
uint x;
uint y;
(x, y) = [f(), f()];
}
}
// ----
// TypeError: (122-125): Array component cannot be empty.