Java to Kotlin bug

Run Settings
LanguageJava
Language Version
Run Command
// The IntelliJ IDEA Kotlin to Java converter generates syntactically invalid // Kotlin code for the Java code below. // // The `break` is not removed, which is invalid in `when` // expressions. While the code is a bit silly, I faced this problem in the wild // while converting https://tartarus.org/martin/PorterStemmer/java.txt. package guide.galaxy.deepthought; class Main { public static void foo(int c) { switch (c) { case 42: if (true) { break; } } } }
Editor Settings
Theme
Key bindings
Full width
Lines