Skip to content

Fix bug: Interface type parameter merged with property is not unused #21966

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
1 commit merged into from
Feb 15, 2018

Conversation

ghost
Copy link

@ghost ghost commented Feb 15, 2018

Fixes #21931
The bug was because the type parameter T was merged with the property T. We considered this to be a case of the PropertySignature referencing itself.
Now we will only consider certain declaration kinds as potential self-references (since we've had a few bugs like this in the past.) I think I've got them all.

@ghost ghost requested a review from sheetalkamat February 15, 2018 16:22
@ghost ghost merged commit a133cec into master Feb 15, 2018
@ghost ghost deleted the noUnusedTypeParameter_mergedWithProperty branch February 15, 2018 17:31
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant