Open reinux opened 5 years ago
Yes the <rad>
annotation in pi<rad>
is being ignored when it should give an error
OR: @dsyme we could allow this, after all it makes sense to allow literal bindings to be augmented as measures just like literal values. Could add it here: https://github.com/fsharp/fslang-design/issues/496
Instances of literal bindings assigned units of measure compile, but don't carry the measure.
Code to reproduce
Expected behavior
Either an error on the assignment of a, or for f to accept pi
Actual behavior
Known workarounds
let a = pi*1.<rad>
Related information