Skip to content

UnnecessaryLet false negatives #2826

Description

@BraisGabin

Right now this a.let { print(it) } and this a.let { msg -> print(msg) } are allowed but they should be flagged as well because you can replace both with println(a).

IntelliJ mark them as unnecessary too.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions