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

Generated code appears to omit necessary parentheses #705

Closed
gwhitney opened this issue Sep 5, 2023 · 0 comments
Closed

Generated code appears to omit necessary parentheses #705

gwhitney opened this issue Sep 5, 2023 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@gwhitney
Copy link

gwhitney commented Sep 5, 2023

In the Playground,

function makeFn
  => x: 1, y:1

compiles to

function makeFn() {
  return () => {x: 1, y:1}
}

but the latter does not compile as TypeScript (or JavaScript, unless I am mistaken). I believe it needs to be

function makeFn() {
  return () => ({x: 1, y:1})
}
@STRd6 STRd6 added bug Something isn't working good first issue Good for newcomers labels Sep 6, 2023
@STRd6 STRd6 closed this as completed in 62959d9 Nov 10, 2023
STRd6 added a commit that referenced this issue Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants