Skip to content

[Sema] Remove a superfluous diagnosis #1308

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 2 commits into from
Feb 15, 2016

Conversation

JaSpa
Copy link
Contributor

@JaSpa JaSpa commented Feb 14, 2016

The same diagnostic (but including a Fix-It hint) is already issued twice (!) in applyGenericArguments.

The same diagnostic (but including the Fix-It hint) is already issued twice (!) in `applyGenericArguments`.
@slavapestov
Copy link
Contributor

If you have a TypeRepr handy, I think you might be able to mark it as invalid and not issue the diagnostic if it is already so.

If the TypeRepr is marked invalid, the function isn't called a second time
@JaSpa
Copy link
Contributor Author

JaSpa commented Feb 15, 2016

It seems I don't even have to check if it's invalid, if I mark it invalid the first time the function isn't called again in a later stage.

slavapestov added a commit that referenced this pull request Feb 15, 2016
[Sema] Remove a superfluous diagnosis
@slavapestov slavapestov merged commit 91dc1cf into swiftlang:master Feb 15, 2016
@JaSpa JaSpa deleted the superfluous-diag branch February 15, 2016 20:18
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