Skip to content

Private ignored for nil field #68

Description

@CallumDev

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions