solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/530_tuple_invalid_literal_too_large_for_uint.sol

9 lines
238 B
Solidity

contract C {
function f() pure public {
uint x;
(x, ) = (1E111);
}
}
// ----
// TypeError: (76-83): Type int_const 1000...(104 digits omitted)...0000 is not implicitly convertible to expected type tuple(uint256,).