Akuli / jou

Yet another programming language
MIT License
11 stars 4 forks source link

Error message for SomeEnum.member #357

Open Akuli opened 1 year ago

Akuli commented 1 year ago

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 commented 3 weeks ago

Ran into this today