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

crash on variance annotations in typescript 4.7 #12630

Closed
DetachHead opened this issue Apr 9, 2022 · 3 comments
Closed

crash on variance annotations in typescript 4.7 #12630

DetachHead opened this issue Apr 9, 2022 · 3 comments

Comments

@DetachHead
Copy link

https://devblogs.microsoft.com/typescript/announcing-typescript-4-7-beta/#optional-variance-annotations-for-type-parameters

Environments:

  • Prettier Version: 2.6.2
  • Running Prettier via: cli
  • Runtime: node 16.11.1
  • Operating System: windows 10
  • Prettier plugins (if any):

Steps to reproduce:

interface Foo<in T> {}

Expected behavior:
no crash
Actual behavior:

src\utilityTypes\misc.ts[error] src\utilityTypes\misc.ts: SyntaxError: Type parameter declaration expected. (24:15)
[error]   22 |     : false
[error]   23 |
[error] > 24 | interface Foo<in T> {}
[error]      |               ^
[error]   25 |
[error]   26 | /**
[error]   27 |  * Checks if two types are equal at the type level.
@fisker
Copy link
Member

fisker commented Apr 9, 2022

Please follow the issue template, otherwise this issue will be closed.

@fisker fisker added the status:awaiting response Issues that require answers to questions from maintainers before action can be taken label Apr 9, 2022
@DetachHead
Copy link
Author

DetachHead commented Apr 10, 2022

@fisker um i did?

image

i answered every one of these

@no-response no-response bot removed the status:awaiting response Issues that require answers to questions from maintainers before action can be taken label Apr 10, 2022
@sosukesuzuki
Copy link
Member

We track the status of TS 4.7 support in #12640

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants