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

No error when trying to access private fields #109

Open
GabeContra opened this issue Mar 15, 2024 · 0 comments
Open

No error when trying to access private fields #109

GabeContra opened this issue Mar 15, 2024 · 0 comments
Assignees

Comments

@GabeContra
Copy link
Contributor

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
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

2 participants