Skip to content

Instantiate constraints with type parameter as 'this' #5552

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 4 commits into from
Nov 7, 2015

Conversation

ahejlsberg
Copy link
Member

Fixes #5525.

@@ -0,0 +1,21 @@
class A {
self() {
Copy link
Member

Choose a reason for hiding this comment

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

could you be explicit that self(): this here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think there's a need to.

@sandersn
Copy link
Member

sandersn commented Nov 6, 2015

👍

ahejlsberg added a commit that referenced this pull request Nov 7, 2015
Instantiate constraints with type parameter as 'this'
@ahejlsberg ahejlsberg merged commit d1c7a62 into master Nov 7, 2015
@ahejlsberg ahejlsberg deleted the thisAndConstraints branch November 7, 2015 00:45
@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.

3 participants