Robert Jaros
11/25/2020, 1:28 PMkotlin.reflect.KSuspendFunction2
type with IR backend, I've got a compiler error:
> Task :compileDevelopmentExecutableKotlinFrontend FAILED
e: java.lang.IllegalStateException: Can't find name for declaration CLASS FUNCTION_INTERFACE_CLASS INTERFACE name:KSuspendFunction2 modality:ABSTRACT visibility:public superTypes:[kotlin.reflect.KFunction<R of kotlin.reflect.KSuspendFunction2>]
at org.jetbrains.kotlin.ir.backend.js.utils.NameTables.getNameForStaticDeclaration(NameTables.kt:315)
at org.jetbrains.kotlin.ir.backend.js.utils.IrNamerImpl.getNameForStaticDeclaration(IrNamerImpl.kt:20)
at org.jetbrains.kotlin.ir.backend.js.transformers.irToJs.EmptyCrossModuleReferenceInfo$withReferenceTracking$1.getNameForStaticDeclaration(MultiModuleSupport.kt)
But what's interesting not when I compile the library with such code, but when I compile an app which uses it.Robert Jaros
11/25/2020, 1:32 PMKFunction
type, which works fine.Robert Jaros
11/25/2020, 1:49 PMKSuspendFunction
nor KFunction
in legacy mode? 🙂
It compiles fine but throws Illegal Cast
exception at runtime ...Robert Jaros
11/25/2020, 1:50 PM