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

Parse error for optional field with attribute #627

Closed
@cknitt

Description

@cknitt

This

type x = {
  @someAttr
  a?: int,
}

gives

  Syntax error!
  Test.res:3:4

  1 │ type x = {
  2 │   @someAttr
  3 │   a?: int,
  4 │ }
  5 │

  I'm not sure what to parse here when looking at "?".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions