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

Don't allow sibling class access to private constructor #6957

Merged
merged 1 commit into from
Apr 19, 2018

Conversation

bendmorris
Copy link
Contributor

@bendmorris bendmorris commented Apr 19, 2018

Fixes #5871

A private constructor should only be accessible in the class or its direct descendants.

Found one of these in the tests themselves, so I'm sure people have been relying on this, knowingly or not.

@Simn
Copy link
Member

Simn commented Apr 19, 2018

I don't really understand why we check for @:compilerGenerated here. Why is it relevant if the constructor has been generated or not?

@bendmorris
Copy link
Contributor Author

Probably doesn't make a difference anymore, I'll remove it.

@Simn Simn merged commit 44e85a1 into HaxeFoundation:development Apr 19, 2018
Gama11 added a commit to openfl/openfl that referenced this pull request Apr 19, 2018
Gama11 added a commit to HaxeFlixel/flixel that referenced this pull request Apr 19, 2018
Gama11 added a commit to HaxeFlixel/flixel-demos that referenced this pull request Apr 19, 2018
@bendmorris bendmorris deleted the private-constructor branch April 19, 2018 23:52
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

Successfully merging this pull request may close these issues.

2 participants