Skip to content

Literal properties not yet supported #8912

Open

Description

@moroine

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions