bitPogo / kmock

A humble mocking library for Kotlin, KotlinJS and Kotlin Multiplatform using Kotlin Symbol Processing (KSP).
Apache License 2.0
59 stars 2 forks source link

MultiBounded ParameterTypes are not resolved correcty #197

Closed bitPogo closed 2 years ago

bitPogo commented 2 years ago

Description

Things like:

interface X {
    fun <T : Map<String, W>, W : G, G> foo(arg: T) where G : CharSequence?, G : Comparable<T>?
    fun <T : Map<String, W>, W : G, G> bar(vararg arg: T) where G : CharSequence?, G : Comparable<T>?
}

are resolved incorrectly with having the boundaries completely replaced W instead with Any.

bitPogo commented 2 years ago

Done with the Release of 0.2.0