Skip to content
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

Check for circular constraints in fillMissingTypeArguments (2) #29150

Closed
wants to merge 3 commits into from

Conversation

ahejlsberg
Copy link
Member

Fixes #28873. Supersedes #28971.


class C1<T extends C1 = any> {} // Error, circular constraint
~~
!!! error TS2313: Type parameter 'T' has a circular constraint.
Copy link
Member

Choose a reason for hiding this comment

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

Uhhhh. I don't think it's great for us to error here, TBH. That T should extend C1<any> is pretty clear.

@ahejlsberg
Copy link
Member Author

Closing in favor of #29179.

@ahejlsberg ahejlsberg closed this Dec 28, 2018
@DanielRosenwasser DanielRosenwasser deleted the EvgenyMuryshkin-issue-29114 branch January 2, 2019 21:14
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.

None yet

3 participants