mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
478 B
Solidity
10 lines
478 B
Solidity
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.
|