Kotlin Decompiler generates erroneous code - Is it possible to prevent?
问题 class CheckInventory(target: Target) : Command(target) { } When decompiling the above Kotlin code using the IntelliJ's " Show Kotlin bytecode " option, it keeps generating a statement above the super() call: class CheckInventory extends Command { public CheckInventory(Target target) { Intrinsic.checkParameterIsNotNull(target, "target"); super(target); //error, must be first call } } There are a few other issues, such as generating top-level classes with an access modifier for WhenMapping: