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
Description
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
Labels
No labels