solidity/test/libsolidity/syntaxTests/types/empty_tuple_lvalue_array.sol

12 lines
231 B
Solidity
Raw Normal View History

pragma solidity ^0.4.3;
contract C {
function f() private pure {}
function a() public {
uint x;
uint y;
(x, y) = [f(), f()];
}
}
// ----
2018-04-23 15:11:41 +00:00
// TypeError: (146-149): Array component cannot be empty.