Skip to content

No TypeParameter found for index T #32

@rovkinmax

Description

@rovkinmax

getting error No TypeParameter found for index T While generating factory for generic classes
For example, classes like this

interface WebSocketClient
interface Dto<out T> {
    fun get(): T
}

interface TestRepository<Network : Dto<Domain>, Domain : Any>
class TestDataRepository<Network : Dto<Domain>, Domain : Any> @Inject constructor(
    private val webSocketClient: WebSocketClient,
    private val tClass: KClass<Network>,
) : TestRepository<Network, Domain>

or

class Store<T> @Inject constructor(private val comparator: EquallyFunction<T>)
class MyVM(val store:Store<MyEntity>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions