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

Record extension fails roc check #7051

Open
jacob-2 opened this issue Sep 2, 2024 · 0 comments
Open

Record extension fails roc check #7051

jacob-2 opened this issue Sep 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jacob-2
Copy link

jacob-2 commented Sep 2, 2024

This:

Foo : { foo : Str }
Bar : { bar : Str }Foo

gives roc check error:

── INVALID_EXTENSION_TYPE in test2.roc ─────────────────────────────────────────

This record extension type is invalid:

20│  Bar : { bar : Str }Foo
                        ^^^

Note: A record extension variable can only contain a type variable or
another record.

Expected record extension like Bar : { foo : Str, bar : Str }

@lukewilliamboswell lukewilliamboswell added the bug Something isn't working label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants