|
The following is a class structure for example purposes: interface Target<V> {
val value: V
}
interface TargetBuilder<I, T : Target<I>> {
…
}
abstract class GenericTargetBuilder<I> : TargetBuilder<I, GenericTarget<I>> {
…
}
class A : GenericTargetBuilder<Int>() {
…
}I would like to resolve Following the docs, I tried the following:
I get How should I go about resolving |
Answered by
callius
Oct 4, 2022
Replies: 1 comment 2 replies
|
I was able to solve my problem by calling Though, it would be nice to simply be able to use |
2 replies
Answer selected by
Egorand
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was able to solve my problem by calling
toClassNameandparameterizedBy, passing a list generated by recursively resolving each type parameter from the parent hierarchy by index.Though, it would be nice to simply be able to use
toTypeNamefor this.