Hi, IntelliJ shows missing branch in `when` even i...
# intellij
p
Hi, IntelliJ shows missing branch in
when
even if the subject is a sealed class or interface with all cases covered. It occurs when editing
.main.kts
files. Kotlin plugin version "212-1.5.30-release-409-IJ4638.7", and AFAIR it was working like this also on 1.5.10. Is it a known issue?
f
I had this in normal kotlin files with sealed classes in different files
👍 1
p
I didn't manage to reproduce it in regular, non-script Kotlin. Do you have a reproducer? In the meantime, I reported my situation as a bug here: Scripting: "when" forced to have an "else" for sealed hierarchy : KT-48522