Skip to content

[Diagnostics] Cleanup and fix for incorrect 'type(of:)' suggestion on initializer #25903

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
Jul 1, 2019

Conversation

gregomni
Copy link
Contributor

@gregomni gregomni commented Jul 1, 2019

Remove dead code: All the correct instances of these diagnostics are now handled by AllowTypeOrInstanceMemberFailure, leaving only incorrect handling for init's with inout args, because the arg contains a LoadExpr.

Resolves SR-10670.

…now handled by AllowTypeOrInstanceMemberFailure, leaving incorrect handling for init's with inout args, because the arg contains a LoadExpr.
@gregomni
Copy link
Contributor Author

gregomni commented Jul 1, 2019

@swift-ci Please smoke test.

@gregomni gregomni requested a review from xedin July 1, 2019 02:54
Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

Great! I'm always happy to see when more of CSDiag gets removed because new diagnostic framework does the job right.

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