Skip to content

When statement ON SEALED INTERFACE SUBJECT always considered exhaustive #124

@jorrit200

Description

@jorrit200

warning: I originally described this issue as regarding when statements in general, but it only affects when statement that have a sealed interface as subject.

The LSP considers every when statement I have written so far to be 'exhaustive', even when this is clearly not true. Simple example below:

Image

This holds true for when expressions as well.

I use neovim and its default kotlin_lsp config. If this issue is uncommon/hard to reproduce, I suppose I could test with other clients, but I don't really have the skills to dissect the issue any further than that. Let me know what is necessary and I will follow up.

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