You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.
* Compiler version info: Konan: 0.9-dev / Kotlin: 1.2.70
* Output kind: PROGRAM
exception: java.lang.ClassCastException: org.jetbrains.kotlin.ir.expressions.impl.IrBlockImpl cannot be cast to org.jetbrains.kotlin.ir.expressions.IrCall
at org.jetbrains.kotlin.backend.konan.lower.EnumClassLowering$EnumClassTransformer.createSyntheticValuesPropertyDeclaration(EnumClassLowering.kt:336)
at org.jetbrains.kotlin.backend.konan.lower.EnumClassLowering$EnumClassTransformer.createImplObject(EnumClassLowering.kt:319)
at org.jetbrains.kotlin.backend.konan.lower.EnumClassLowering$EnumClassTransformer.run(EnumClassLowering.kt:197)
at org.jetbrains.kotlin.backend.konan.lower.EnumClassLowering.lower(EnumClassLowering.kt:173)
at org.jetbrains.kotlin.backend.common.LowerKt$runOnFilePostfix$1.visitClass(Lower.kt:57)
at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid$DefaultImpls.visitClass(IrElementVisitorVoid.kt:44)
at org.jetbrains.kotlin.backend.common.LowerKt$runOnFilePostfix$1.visitClass(Lower.kt:50)
at org.jetbrains.kotlin.backend.common.LowerKt$runOnFilePostfix$1.visitClass(Lower.kt:50)
at org.jetbrains.kotlin.ir.declarations.impl.IrClassImpl.accept(IrClassImpl.kt:100)
at org.jetbrains.kotlin.ir.declarations.impl.IrFileImpl.acceptChildren(IrFileImpl.kt:79)
at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoidKt.acceptChildrenVoid(IrElementVisitorVoid.kt:251)
at org.jetbrains.kotlin.backend.common.LowerKt$runOnFilePostfix$1.visitElement(Lower.kt:52)
at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid$DefaultImpls.visitPackageFragment(IrElementVisitorVoid.kt:30)
at org.jetbrains.kotlin.backend.common.LowerKt$runOnFilePostfix$1.visitPackageFragment(Lower.kt:50)
at org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoid$DefaultImpls.visitFile(IrElementVisitorVoid.kt:37)
After adding a few prints and compiling from source, I identified the problematic enum. Circumvented the error like this:
Fixed by #1794. The issue relates to reordering named arguments, so to avoid it in 0.8, you just need to create an enum entry keeping the argument order of the enum constructor:
enum class PixelFormat(
...
val dxtVersion: Int = 0,
val isCompressed: Boolean = false
) : IdEnum {
...
// Keep the same order as in the PixelFormat constructor.
COMPRESSED_DXT5(10, bytesPerPixel = 1.0, dxtVersion = 5, isCompressed = true);
...
}
https://github.com/kpspemu/kpspemu/blob/edd812e5ff4abc0f4c196add1ac46853612be603/kpspemu/common/src/com/soywiz/kpspemu/ge/GeEnums.kt#L227
After adding a few prints and compiling from source, I identified the problematic enum. Circumvented the error like this:
-->
The text was updated successfully, but these errors were encountered: