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

Error message for SomeEnum.member #357

Open
Akuli opened this issue Mar 25, 2023 · 1 comment
Open

Error message for SomeEnum.member #357

Akuli opened this issue Mar 25, 2023 · 1 comment

Comments

@Akuli
Copy link
Owner

Akuli commented Mar 25, 2023

I wrote this code: (AstExpressionKind is an enum)

                result = AstExpression{
                    location = call.location,
                    kind = AstExpressionKind.Call,
                    call = call,
                }

Expected result: The compiler complains about AstExpressionKind.Call and tells me to use :: instead of . to access enum members.

Actual result: compiler error in file "self_hosted/parser.jou", line 376: no variable named 'AstExpressionKind'

@Akuli
Copy link
Owner Author

Akuli commented Aug 20, 2024

Ran into this today

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

No branches or pull requests

1 participant