Skip to content

Formatter removes () from functor type which results invalid code #7720

@hackwaly

Description

@hackwaly

Version: 12.0.0-beta.2

Before formatted:

module type S = {}
module type Config = {}
module rec Make: (Config, ()) => S = (Config: Config, ()): S => {}

After formatted:

module type S = {}
module type Config = {}
module rec Make: (Config, ) => S = (Config: Config, ()): S => {}

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions