Skip to content

Block comment formatting inside of lambdas #602

@hick209

Description

@hick209

Right now block comments do not work the same way as line comments, see below.
We need to fix that

// current
val b =
    { /* do nothing */ /* also do nothing */
    }
val c = { -> /* do nothing */
}

private val f: () -> Unit = {
  // no-op
}
private val g: () -> Unit =
    { /* no-op */
    }

// expected
val b = {
  /* do nothing */
  /* also do nothing */
}
val c = { ->
  /* do nothing */
}

private val f: () -> Unit = {
  // no-op
}
private val g: () -> Unit = {
  /* no-op */
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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