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

10 lines
297 B
Solidity
Raw Normal View History

2018-03-26 17:48:20 +00:00
contract c {
function bignum() public {
uint a;
a = 134562324532464234452335168163516E1200 / 134562324532464234452335168163516E1200; // still fine
a = 1345623245324642344523351681635168E1200; // too large
}
}
// ----
// TypeError: (179-218): Invalid literal value.