Skip to content

Comment get lost #9564

Description

@fisker

Prettier 2.1.2
Playground link

--parser flow

Input:

class A {
  /*::
  +isLookahead: boolean;
  */
  foo() {}
}

class A {
  /*::*/
  foo() {}
}

Output:

class A {
  +isLookahead: boolean;
  foo() {}
}

class A {
  foo() {}
}

Expected behavior:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:flow comment typeslang:flowIssues affecting Flow-specific constructs (not general JS issues)type:intendedBug reports that actually turned out to be intended behavior

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions