Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

🐛 [js-parser] extends infer T extends syntax fails to compile #3934

@Conaclos

Description

@Conaclos

Environment information

Rome latest.

What happened?

Rome amits an error for the following snippet of code:

type B = A extends infer T extends B ? C<T> : never;

Playground

This is also a ESbuild bug recently reported.

Expected result

The code should be parsed without any error.

Code of Conduct

  • I agree to follow Rome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ParserArea: parserL-TypeScriptArea: TypeScript support in RomeS-Bug: confirmedStatus: report has been confirmed as a valid bug

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions