solidity/test/libsolidity/syntaxTests/multiVariableDeclaration/oneElementTuple.sol

9 lines
148 B
Solidity
Raw Normal View History

2018-07-04 16:35:01 +00:00
contract C {
function f() public {
(uint a,) = (1,);
a;
}
}
// ----
// TypeError: (59-63): Tuple component cannot be empty.