Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to match on float #182

Closed
eliaslfox opened this issue Sep 17, 2021 · 1 comment
Closed

Unable to match on float #182

eliaslfox opened this issue Sep 17, 2021 · 1 comment
Labels
bug Something isn't working type system The Coalton type system
Milestone

Comments

@eliaslfox
Copy link
Collaborator

(coalton-toplevel
  (declare f (Double-Float -> Double-Float))
  (define (f x)
    (match x
      (5 x)
      (6 x))))
Failed to unify types DOUBLE-FLOAT and INTEGER
in unification of types (DOUBLE-FLOAT → DOUBLE-FLOAT) and (INTEGER → INTEGER)
in definition of F
in COALTON-TOPLEVEL
@eliaslfox eliaslfox added bug Something isn't working type system The Coalton type system labels Sep 17, 2021
@eliaslfox eliaslfox added this to the 0.1 Release milestone Sep 17, 2021
@eliaslfox
Copy link
Collaborator Author

This is a sub issue of #51.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working type system The Coalton type system
Projects
None yet
Development

No branches or pull requests

1 participant