-
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 |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
I was able to solve my problem by calling
toClassName
andparameterizedBy
, 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
toTypeName
for this.