solidity/test/libsolidity/syntaxTests/types/no_singleton_tuple.sol
Daniel Kirchner ad47fe23c1 Update tests.
2018-07-10 15:28:05 +02:00

9 lines
141 B
Solidity

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