solidity/test/libsolidity/syntaxTests/types/rational_number_literal_limit_1.sol
2018-04-16 11:45:55 +02:00

10 lines
221 B
Solidity

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.