solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/245_tuples_empty_components.sol

8 lines
127 B
Solidity

contract C {
function f() public {
(1,,2);
}
}
// ----
// TypeError: (47-53): Tuple component cannot be empty.