Skip to content

Fails when a function has only a comment #45

@fvictorio

Description

@fvictorio

If a function has only a comment as body:

function foo() public {
  // to be defined
}

prettier fails with a Comment "to be defined" was not printed.

I created a branch https://github.com/prettier-solidity/prettier-plugin-solidity/tree/function-body-with-comment that has a failing test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions