8000 [4.7-beta] Parsing failure for arrow function expr in conditional expr Β· Issue #48733 Β· microsoft/TypeScript Β· GitHub
[go: up one dir, main page]

Skip to content
[4.7-beta] Parsing failure for arrow function expr in conditional exprΒ #48733
Closed
@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

    0