Skip to content

Instantly share code, notes, and snippets.

@bjartwolf
Last active August 29, 2015 13:59
Show Gist options
  • Save bjartwolf/10505433 to your computer and use it in GitHub Desktop.
Save bjartwolf/10505433 to your computer and use it in GitHub Desktop.
streetfight1a
[<Measure>] type Length
[<Measure>] type Area = Length*Length
let area (b : float<Length>) (a: float<Length>) = a*b^2
let a1:float<Area> = area 3.0<Length> 5.0<Length>
@bjartwolf
Copy link
Author

Type mismatch. Expecting a float but given a float<Length ^ 3> The unit of measure 'Area' does not match the unit of measure 'Length ^ 3'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment