Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

member-access rule not working on getters and setters #750

Closed
lbesson opened this issue Oct 22, 2015 · 1 comment
Closed

member-access rule not working on getters and setters #750

lbesson opened this issue Oct 22, 2015 · 1 comment

Comments

@lbesson
Copy link

lbesson commented Oct 22, 2015

When applying the member-access rule on the following class

class Test {
    public static a;
    static b;

    private c;
    d;

    method() {

    }

    private method2() {

    }

    get e() { // no error here
        return 2;
    }

    public set f(value) {

    }
}

no error is raised for the getter.

Is it the expected behaviour, or should getters and setters also be covered by the rule?

@adidahiya
Copy link
Contributor

I believe this was fixed by #801.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants