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

10 lines
478 B
Solidity
Raw Normal View History

2018-03-26 17:48:20 +00:00
contract c {
function f() public pure {
int a;
a = 1/(2<<4094)/(2<<4094);
}
}
// ----
// TypeError: (71-92): Operator / not compatible with types rational_const 1 / 5221...(1225 digits omitted)...5168 and int_const 5221...(1225 digits omitted)...5168
// TypeError: (71-92): Type rational_const 1 / 5221...(1225 digits omitted)...5168 is not implicitly convertible to expected type int256. Try converting to type ufixed8x80 or use an explicit conversion.