Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Give good error when a type declaration has an inline record type when not permitted #114

Merged
merged 1 commit into from
Aug 19, 2020

Conversation

IwanKaramazow
Copy link
Contributor

Fixes #97

@IwanKaramazow IwanKaramazow merged commit bef5628 into master Aug 19, 2020
@IwanKaramazow IwanKaramazow deleted the IllegalInlineRecord branch August 19, 2020 19:13
@sikanhe
Copy link

sikanhe commented Aug 19, 2020

Hey - is it better to say something like: "Nested record types must be defined separately"? And perhaps give a simple example? This would also cover the case when not using inline records

@chenglou
Copy link
Member

Nested isn't as accurate as inline. And when we talk about defined separately we'd have to exclude variant constructors, which comes back to this

@chenglou
Copy link
Member

Actually, good examples is nice. Maybe file it here?

I should also move that repo.

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

Successfully merging this pull request may close these issues.

Give good error when a type declaration has an inline record type when not permitted
3 participants