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:
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.