Skip to content

[TypeChecker] Respect access control flag while validating superclass… #21697

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

Merged
merged 1 commit into from
Jan 8, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jan 8, 2019

… relation

Otherwise it's impossible to declare a subclass in integrated REPL

… relation

Otherwise it's impossible to declare a subclass in integrated REPL
@xedin xedin requested a review from jrose-apple January 8, 2019 02:24
Copy link
Contributor

@slavapestov slavapestov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Can you also add a test that overriding user-defined methods works? Your existing test only overrides a synthesized init.

@xedin
Copy link
Contributor Author

xedin commented Jan 8, 2019

@slavapestov Turns out that actually doesn't work :) I'm going to open a separate PR for that.

@xedin
Copy link
Contributor Author

xedin commented Jan 8, 2019

@swift-ci please smoke test

@jrose-apple
Copy link
Contributor

Can you also add a test that doesn't involve the REPL? There's a -disable-access-control frontend flag for this purpose.

@xedin
Copy link
Contributor Author

xedin commented Jan 8, 2019

Sure, I'll add that in the upcoming PR.

@xedin xedin merged commit 5636cd3 into swiftlang:master Jan 8, 2019
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.

3 participants