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

10 lines
221 B
Solidity
Raw Normal View History

2018-03-26 17:48:20 +00:00
contract c {
function bignum() public {
uint256 a;
a = 1e1233 / 1e1233; // 1e1233 is still fine
a = 1e1234; // 1e1234 is too big
}
}
// ----
// TypeError: (128-134): Invalid literal value.