On more … Is it know that Koin Annotations’ KOIN_C...
# koin
u
On more … Is it know that Koin Annotations’ KOIN_CONFIG_CHECK feature will hick up on provider parameters declared with a typealias? More in thread…
The following code
Copy code
typealias PreferencesMigrationList = List<PreferencesMigration>

    @Single
    fun providePreferencesMigrationManager(
        prefs: SharedPreferences,
        migrations: PreferencesMigrationList
    ): PreferencesMigrationManager {
Will hickup with:
Copy code
[ksp] java.lang.ClassCastException: class com.google.devtools.ksp.symbol.impl.binary.KSTypeAliasDescriptorImpl cannot be cast to class com.google.devtools.ksp.symbol.KSClassDeclaration (com.google.devtools.ksp.symbol.impl.binary.KSTypeAliasDescriptorImpl and com.google.devtools.ksp.symbol.KSClassDeclaration are in unnamed module of loader java.net.URLClassLoader @35b6138e)
	at org.koin.compiler.metadata.TagFactory.getMetaTag(TagFactory.kt:82)
	at org.koin.compiler.metadata.MetaAnnotationFactory.generate(MetaAnnotationFactory.kt:31)
...
...
a
in 2.0-RC1 right?
u
yes
👍 1
a
typealias is a good case that need to be tested I think 🤔
👍 1