You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that Elm does some type-punning for constant numbers, and lets them be both Floats and Ints. The type inference code here seems to mostly do the same thing, except when destructuring those numbers. Perhaps this breaks for record and opaque type destructuring as well?
The text was updated successfully, but these errors were encountered:
If you destructure a number from a tuple, the type-inference seems to not be able to treat it as both a float and an int.
Expected Behavior
elm make
doesn't compile with any errors here.Current Behavior
elm-language-server
throws an error:Context
It seems that Elm does some type-punning for constant numbers, and lets them be both Floats and Ints. The type inference code here seems to mostly do the same thing, except when destructuring those numbers. Perhaps this breaks for record and opaque type destructuring as well?
The text was updated successfully, but these errors were encountered: