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

gdlint: Calling static private method from inside the same class raises error #283

Open
hungpt-a8e opened this issue Feb 11, 2024 · 0 comments
Labels
bug Something isn't working linter
Milestone

Comments

@hungpt-a8e
Copy link

If you try to call static private method of a class from inside the same class gdlint will raise an error, for example:

class_name Foo

func _foo() -> void:
    Foo._bar() # gdlint: Error: Private method "_bar" has been called (private-method-call)

static func _bar() -> void:
    pass

I think private members should be allowed to be called from inside the same class and gdlint should not raise errors in this situation.

@Scony Scony added bug Something isn't working linter labels Feb 11, 2024
@Scony Scony added this to the 4.x milestone Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linter
Projects
Status: No status
Development

No branches or pull requests

2 participants