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.

Parentheses when assigning optional value to optional field #714

Closed
@cknitt

Description

@cknitt

Currently, the input

{
  paddingTop: ?(someBool ? Some(42.) : None),
}

prints as

{
  paddingTop: ?someBool ? Some(42.) : None,
}

which still parses fine, but looks quite weird, as if the first ? was applied to someBool only.

I think this should be printed with parentheses as in the original input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions