Skip to content

[4.7-beta] Parsing failure for arrow function expr in conditional expr #48733

@sosukesuzuki

Description

@sosukesuzuki

Bug Report

🔎 Search Terms

  • conditional
  • 4.7 beta
  • syntax error

🕗 Version & Regression Information

  • This is a crash
  • This changed between versions 4.6.3 and 4.7.0-beta

⏯ Playground Link

Playground link with relevant code

💻 Code

(false ? (param): string => param :  null);

🙁 Actual behavior

Parsing failure for arrow function expr that has type annotations for return type, but doesn't have type annotations for parameters, in conditional expression.

🙂 Expected behavior

Parsing successfull.

Metadata

Metadata

Assignees

Labels

Fix AvailableA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions