solidity/test/libsolidity/syntaxTests/types/empty_tuple_lvalue_array.sol
2018-04-23 17:11:41 +02:00

12 lines
231 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): Array component cannot be empty.