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

Private ignored for nil field #68

Open
CallumDev opened this issue Dec 6, 2023 · 0 comments
Open

Private ignored for nil field #68

CallumDev opened this issue Dec 6, 2023 · 0 comments

Comments

@CallumDev
Copy link
Contributor

Another little issue, when declaring a private field without an assignment the private flag is ignored, for Ex.
Class A
{
private var a;
}

Maybe this scenario should be handled in ClassDefinitionStatement line No. 185 by adding the field?
case TokenType.SemiColon:
fields.add(...)
break;
The question is how can we add a field with a zero/Nil assignment?

Thanks Callum.

Originally posted by @shpitsmedia in #67 (comment)

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