Skip to content

Fix recursive reference in type parameter default #19056

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 2 commits into from
Oct 11, 2017
Merged

Fix recursive reference in type parameter default #19056

merged 2 commits into from
Oct 11, 2017

Conversation

rbuckton
Copy link
Member

@rbuckton rbuckton commented Oct 9, 2017

This change allows class SelfReference<T = SelfReference<string>> {} but reports an error for class SelfReference<T = SelfReference> {}. Previously this would result in a stack overflow.

Fixes #16221

@rbuckton rbuckton requested a review from weswigham October 9, 2017 22:46
@weswigham
Copy link
Member

Looks like a baseline needs to be updated.

@rbuckton rbuckton merged commit 73d06f7 into master Oct 11, 2017
@rbuckton rbuckton deleted the fix16221 branch October 11, 2017 19:49
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 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