Hi everyone. I have a problem with a enum, which h...
# kotlin-native
z
Hi everyone. I have a problem with a enum, which has own method:
Copy code
enum class PropertyDataType{
    P_TYP_INTEGER_16() {
        override fun getData(byteArray: ByteArray): Int {
             ...
        }
    }
}
kotlin compile throw exception:
Copy code
e: Compilation failed: Could not find serialized descriptor for index: -7412938954638445921 com.tullynore.pst.domain.dictionary,PropertyDataType.P_TYP_INTEGER_16,<init>

 * Source files: FolderTests.kt, MessageTests.kt, UtilsTests.kt
 * Compiler version info: Konan: 1.2.1 / Kotlin: 1.3.31
 * Output kind: PROGRAM

e: java.lang.IllegalStateException: Could not find serialized descriptor for index: -7412938954638445921 com.tullynore.pst.domain.dictionary,PropertyDataType.P_TYP_INTEGER_16,<init>
Maybe someone already had such an exception? Who can help me?
s
This looks like a compiler bug. Thanks for the report.
z
You are welcome