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

Permit type alias variance annotations only for certain object types #48589

Merged
merged 2 commits into from
Apr 6, 2022

Conversation

ahejlsberg
Copy link
Member

With this PR we restrict type alias variance annotations to only be permitted on type aliases for object, function, constructor, and mapped types. Fixes issue discussed here.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Apr 6, 2022
@ahejlsberg ahejlsberg merged commit 8f6e626 into main Apr 6, 2022
@ahejlsberg ahejlsberg deleted the validateVarianceAnnotations branch April 6, 2022 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants