Assume such measures are defined:
[<Measure>] type kilogram
[<Measure>] type kg = kilogram
[<Measure>] type s
When I define a binding like this:
let x = 1.<kg / kilogram> // Type of x: float
F# correctly simplifies type of x from float<kg/kilogram>
to float
.
But when I add another unit like this:
let y = 1.<kg s / kilogram> // Type of y: float<kg s / kilogram>
Instead of simplfying type of y to float<s>
, it shows float<kg s / kilogram>
Why doesn't F# simplify it in this case? Am I doing something wrong?