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

9 lines
362 B
Solidity
Raw Normal View History

contract C {
function f() internal pure {
2020-07-15 17:50:59 +00:00
uint i = 31415999999999999999999999999999999999999999999999999999999999999999933**3;
uint unreachable = 123;
}
}
// ----
2020-07-15 17:50:59 +00:00
// TypeError 9574: (54-137): Type int_const 3100...(204 digits omitted)...9237 is not implicitly convertible to expected type uint256. Literal is too large to fit in uint256.