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

Type checker error with alias #1371

Closed
jvoigtlaender opened this issue May 12, 2016 · 2 comments
Closed

Type checker error with alias #1371

jvoigtlaender opened this issue May 12, 2016 · 2 comments

Comments

@jvoigtlaender
Copy link
Contributor

On http://elm-lang.org/try, the following program:

type alias F a = a

f : F a -> a
f = identity

gives this error:

The type annotation for `f` does not match its definition.

 4| f : F a -> a
        ^^^^^^^^

The type annotation is saying:

     F b -> b 

But I am inferring that the definition has this type:

     F b -> b
@evancz evancz added the bug label May 12, 2016
@evancz evancz added this to the types milestone May 12, 2016
@evancz evancz added the types label May 12, 2016
@evancz evancz modified the milestone: types May 12, 2016
@evancz evancz mentioned this issue May 12, 2016
4 tasks
@evancz
Copy link
Member

evancz commented May 12, 2016

Centralizing into #1373, will track from there.

@evancz
Copy link
Member

evancz commented Mar 7, 2018

This goes through fine in my development build!

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

No branches or pull requests

2 participants