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

Referring to missing types does not generate an error #91

Closed
j14159 opened this issue Jan 13, 2017 · 2 comments
Closed

Referring to missing types does not generate an error #91

j14159 opened this issue Jan 13, 2017 · 2 comments
Assignees
Labels

Comments

@j14159
Copy link
Collaborator

j14159 commented Jan 13, 2017

module x

type a = int | b

This doesn't generate an error about an undefined type b and it should.

Thanks to @danabr for pointing this out in IRC

@j14159 j14159 added the bug label Jan 13, 2017
@j14159 j14159 self-assigned this Jan 13, 2017
@danabr
Copy link
Contributor

danabr commented Jan 13, 2017

Referring to an unknown type variable should also be an error. Currently, the compiler let's this through:

type baz 'a = Baz 'c

let woot Baz _ = :ok

Should we squash that one at the same time, or would you prefer a separate issue?

@j14159
Copy link
Collaborator Author

j14159 commented Jan 13, 2017

Seems like part of the same issue to me, thanks for adding this!

@j14159 j14159 mentioned this issue Feb 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants