Skip to content

Private ignored for nil field #68

@CallumDev

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)

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