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

[Trivia] Fantomas removes the parentheses around Fable's string field access syntax #476

Closed
resolritter opened this issue Sep 9, 2019 · 0 comments

Comments

@resolritter
Copy link

resolritter commented Sep 9, 2019

Description

https://github.com/fable-compiler/fable-doc/wiki/Call-JS-from-Fable#what-is-dynamic-typing

The following syntax

object?(field)

is broken for the first occurrence in the line.

Repro code

Notice how the parentheses after f.errors is missing in the formatted version, and that breaks the code.

https://jindraivanek.gitlab.io/fantomas-ui/#?fantomas=preview-trivia&code=DYUwLgBAZgliwBMDCB7YKBOEAUt4IDkBDAWxAC4IBnMDGAOwHMBKCAXgCgJuffuYo0AHQgMGTFQD8uOImJlWAMkXCwKAK4BjABYgE0vHNIhWYXfS58rvAJJUAIkSajL1nvCohXbvgRSp0DG83AB8APggbegAHdTAhAMwgA

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

2 participants