Skip to content

Support guard conditions in when with a subject #530

@gdesantos

Description

@gdesantos

Guard conditions in when with a subject are described here:
https://kotlinlang.org/docs/whatsnew21.html#guard-conditions-in-when-with-a-subject

Currently ktfmt is failing if we use this feature in code with the following error:

ktfmt(ktfmt) error: Expecting '->'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions