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

Fails to parse when spread operators is used in rest parameters #2937

Closed
sapphi-red opened this issue Feb 19, 2023 · 0 comments
Closed

Fails to parse when spread operators is used in rest parameters #2937

sapphi-red opened this issue Feb 19, 2023 · 0 comments

Comments

@sapphi-red
Copy link
Contributor

const tuple: (...[e1, e2, ...es]: any) => any = null as any

With this input, esbuild throws Unexpected "..." error. esbuild repl

This works with TypeScript (TS playground).

Original issue: vitejs/vite#10501

@evanw evanw closed this as completed in 42d3b2f Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant