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

9 lines
141 B
Solidity
Raw Normal View History

2018-07-10 10:36:48 +00:00
contract C {
function f() public pure {
uint a;
(a,) = (uint(1),);
}
}
// ----
// TypeError: (60-70): Tuple component cannot be empty.