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

9 lines
146 B
Solidity

contract C {
function f() public pure {
uint a;
(a,) = (uint(1),);
}
}
// ----
// TypeError 8381: (60-70): Tuple component cannot be empty.