Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Formatting a polymorphic variant with an empty string name causes a syntax error #472

Closed
5 tasks done
tom-sherman opened this issue Dec 21, 2021 · 1 comment · Fixed by #474
Closed
5 tasks done

Comments

@tom-sherman
Copy link

Thank you for filing! Check list:

  • Is it a bug? Usage questions should often be asked in the forum instead.
  • Concise, focused, friendly issue title & description.
  • A minimal, reproducible example.
  • OS and browser versions, if relevant.
  • Is it already fixed in master?

Steps to reproduce:

  1. Format this code let x = #""

Expected behaviour:

Nothing or formatting applied

Actual behaviour:

"" is stripped leaving you with let x = # which is a syntax error.

@TheSpyder
Copy link

This probably belongs in the syntax repo, but I'm sure it'll be moved there when @bobzhang sees it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants