Is it possible to define a Unit of Measure in a signature file (.fsi)?
I have tried to add it after namespace definition,
[<Measure>] type unitOfMeasure
but the compiler complains "type unitOfMeasure is not defined". I need to re-define it in the implementation file (.fs).
I think the reason might be that Units of Measure are not public visible (for the CLR) - they get erased after/while compilation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With