mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
7 lines
298 B
Solidity
7 lines
298 B
Solidity
|
contract C {
|
||
|
uint constant a = 4 ether / 3 hours;
|
||
|
ufixed constant b = ufixed(4 ether / 3 hours);
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (32-49): Type rational_const 10000000000000000 / 27 is not implicitly convertible to expected type uint256. Try converting to type ufixed256x62 or use an explicit conversion.
|