Join Slack
Hi, IntelliJ shows missing branch in `when` even if the subject is a sealed class or interface with ...
# intellij
p
Piotr KrzemiĆski
08/30/2021, 8:09 AM
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
Fudge
08/30/2021, 7:33 PM
I had this in normal kotlin files with sealed classes in different files
đ 1
p
Piotr KrzemiĆski
08/31/2021, 6:07 AM
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
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by