Skip to content

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

Merged
ahejlsberg merged 2 commits intomainfrom
validateVarianceAnnotations
Apr 6, 2022
Merged

Permit type alias variance annotations only for certain object types#48589
ahejlsberg merged 2 commits intomainfrom
validateVarianceAnnotations

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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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