Skip to content

No error when trying to access private fields #109

Open
@GabeContra

Description

@GabeContra

This test program here should give an error:

class AccessModifierTest
   action Main
        ClassWithFields obj
        obj:a = 1
        obj:b = 2
        obj:c = 3
        obj:OutputFields()
    end

end

class ClassWithFields
    public integer a = 0
    private integer b = 0
    integer c = 0

    action OutputFields
        output a
        output b
        output c
    end
end

Instead it both compiles, runs, and outputs:

1
2
3

Metadata

Metadata

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