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

9 lines
362 B
Solidity
Raw Normal View History

contract C {
function f(uint y) public pure {
// one byte too long for storing in Fixedbytes (would require 33 bytes)
y = 0xffffffff00000000ffffffff00000000ffffffff00000000ffffffff000000001;
}
}
// ----
// TypeError 7407: (142-209): Type int_const 1852...(71 digits omitted)...7281 is not implicitly convertible to expected type uint256.