Skip to content

Kotin 2.1.x seems to break the asCache extension functions #37

@mluiten

Description

@mluiten

When updating to Kotlin 2.1.20, the asCache extensions functions don't seem to resolve anymore and there seems to be no workaround that works for me... getting these types of errors:

[ERROR] <BLABLA>Service.kt:[60,10] None of the following candidates is applicable:
[ERROR] fun <K, V> Caffeine<in K, in V>.asCache(): Cache<K, V>
[ERROR] fun <K, V> Caffeine<in K, in V>.asCache(scope: CoroutineScope): Cache<K, V>

Could be related to https://kotlinlang.org/docs/whatsnew21.html#improved-overload-resolution-for-functions-with-generic-types ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions