[Bug]: Parser fails to parse conditional type with generic arrow function at the extends position #14600
Labels
area: typescript
i: bug
i: regression
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
pkg: parser
馃捇
How are you using Babel?
Other (Next.js, Gatsby, vue-cli, ...)
Input code
Configuration file name
No response
Configuration
Current and expected behavior
Current
Expected
It should parse OK. Both TypeScript and Prettier parse this. Babel was also parsing this correctly a few versions back.
Environment
https://babeljs.io/repl#?browsers=ie%2011&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=KYDwDg9gTgLgBDAnmYcCiBHArgQwDYDOAPAIICMcoMwAdgCYFw42IA0cJATJSNfY80QA-OAF44AClJCJASjEiSPPgw6cAUHDgB-BFCzBNcAFxwAZvgLB5VWqulyFHZXcbkdegyfOXDW3TD6ft4WhMAA3EA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env%2Creact%2Ctypescript&prettier=false&targets=&version=7.18.3&externalPlugins=%40babel%2Fplugin-proposal-object-rest-spread%407.6.2&assumptions=%7B%7D
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: