Hi, I'm trying to update my multiplatform DB proje...
# kotlin-toolchain
x
Hi, I'm trying to update my multiplatform DB project to Kotlin 2.4.20. In compiler plugin, I come to these issues regarding @K1Deprecation:
fun DeclarationDescriptor.findPsi(): PsiElement? {...}
interface SyntheticResolveExtension { ... }
any guidance on how to migrate?
a
Hi there, could you please share more details?
x
Basically, I have a function:
inline fun ClassDescriptor.hasInterfacePsi(interfaces: Set<String>): Boolean {
return this.findPsi()?.hasInterface(interfaces) ?: false
}
2 classes deriving from SyntheticResolveExtension:
class RealmModelSyntheticCompanionExtension : SyntheticResolveExtension
class RealmModelSyntheticMethodsExtension : SyntheticResolveExtension
So guess I have migrate away from these?
the project source is:
<https://github.com/XilinJia/krdb>
a
Which version of Kotlin Toolchain do you use?
x
version of Kotlin Toolchain? I'm not too sure how to answer it. I currently build the project with Kotlin 2.4.0, and now trying to migrate to 2.4.20.
a
Oh, I think then you might be writing in the wrong channel, here we discuss Kotlin Toolchain I think you should ask your question somewhere in the #C7L3JB43G channel, I guess
x
OK. Thank you.