Skip to content

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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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