solidity/test/libsolidity/syntaxTests/tupleAssignments/nowarn_explicit_singleton_token_expression.sol

9 lines
196 B
Solidity
Raw Normal View History

2018-05-04 14:20:38 +00:00
contract C {
function f() public pure {
uint a;
(a,) = (uint(1),);
}
}
// ----
// Warning: (53-70): Different number of components on the left hand side (2) than on the right hand side (1).