Skip to content

Fix simple uses of polymorphic this in services#5169

Merged
sandersn merged 4 commits into
masterfrom
fix-simple-uses-of-polymorphic-this-in-services
Oct 12, 2015
Merged

Fix simple uses of polymorphic this in services#5169
sandersn merged 4 commits into
masterfrom
fix-simple-uses-of-polymorphic-this-in-services

Conversation

@sandersn

@sandersn sandersn commented Oct 8, 2015

Copy link
Copy Markdown
Member
  1. Completion after this. was empty.
  2. Quick info of methods with overloads always chose the first overload,
    regardless of whether an argument whose type matched a different overload.

Both have the same cause: the type parameter introduced by polymorphic this is not usable, whereas the original is. In both cases, the usage is simple -- it doesn't take advantage of the capabilities of
polymorphic this.

Fixes #5038

1. Completion after `this.` was empty.
2. Quick info of methods with overloads always chose the first overload,
regardless of whether an argument whose type matched a different overload.

Both have the same cause: the type parameter introduced by
polymorphic `this` is not usable, whereas the original is. In both cases,
the usage is simple -- it doesn't take advantage of the capabilities of
polymorphic `this`.
@msftclas

msftclas commented Oct 8, 2015

Copy link
Copy Markdown

Hi @sandersn, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Nathan Shively-Sanders). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

@sandersn

sandersn commented Oct 8, 2015

Copy link
Copy Markdown
Member Author

lint errors. I'll fix and push a new commit

Comment thread src/services/services.ts Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"Get the first signature if there is one."

@mhegazy

mhegazy commented Oct 9, 2015

Copy link
Copy Markdown
Contributor

👍

@DanielRosenwasser

Copy link
Copy Markdown
Member

👍

sandersn added a commit that referenced this pull request Oct 12, 2015
…c-this-in-services

Fix simple uses of polymorphic this in services
@sandersn sandersn merged commit 8a05134 into master Oct 12, 2015
@sandersn sandersn deleted the fix-simple-uses-of-polymorphic-this-in-services branch October 12, 2015 20:54
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
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.

4 participants