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

errors when extending records in invalid ways #1661

Closed
endlessoblivion opened this issue Dec 27, 2017 · 2 comments
Closed

errors when extending records in invalid ways #1661

endlessoblivion opened this issue Dec 27, 2017 · 2 comments

Comments

@endlessoblivion
Copy link

endlessoblivion commented Dec 27, 2017

In Elm 0.18:

type T = T {}
type alias A a = { a | x : () }

f : A T -> ()
f { x } = x

still results in:

elm-make: Used toSrcType on a type that is not well-formed
elm-make: thread blocked indefinitely in an MVar operation

despite this commit for 0.16 claiming a fix.

Related: #917

Note from Evan: Issue #1660 points out that you can have problems when it is a record, but has duplicate fields. It seems like kind checking would have to have a bit of extra cleverness to catch that situation as well.

@process-bot
Copy link

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

@evancz evancz changed the title Crash on extending a non-record errors when extending records in invalid ways Mar 6, 2018
@evancz
Copy link
Member

evancz commented Mar 7, 2018

Tracking in #1684

Thank you for the report!

@evancz evancz closed this as completed Mar 7, 2018
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

3 participants