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

Literal properties not yet supported #8912

Open
moroine opened this issue Aug 2, 2022 · 0 comments
Open

Literal properties not yet supported #8912

moroine opened this issue Aug 2, 2022 · 0 comments

Comments

@moroine
Copy link
Contributor

moroine commented Aug 2, 2022

Flow version: 0.183.1

Expected behavior

The following code is failing in Flow with Literal properties not yet supported.

class A {
  '1prop' = 1;
  '2prop' = 'a';
  'some-value': null;
  'with space': null;
}

https://flow.org/try/#0MYGwhgzhAECC0G8BQ1oHICMAHATgeyzWgF5oMBuFdAJlwKNLTDUtTQjwFsBTAWgDcwIAK7c0ALmgA7YSBCt0AdwCWAFwAW0CFjDAxkmXMoBfIA

Actual behavior

Support the following syntax as it's valid JavaScript. According to the message I know that's something which is not implemented yet, but I can't find any related issue to track the support.

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

No branches or pull requests

2 participants