aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/denominations/fixed_point_division.sol
blob: 22331b51b05e031e829b6a017840ed5e042b7f41 (plain) (blame)
1
2
3
4
5
6
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.