typeParametersHierarchy

expect fun TypeInfo.typeParametersHierarchy(): Sequence<TypeInfo>(source)

Returns a list of the given base implementation for covariant type arguments.

For example, supertype bounds with the out keyword will return matching supertypes for the type arguments.

Report a problem

Return

A list of TypeInfo representing the base type with covariant type arguments.

actual fun TypeInfo.typeParametersHierarchy(): Sequence<TypeInfo>(source)

Returns a list of the given base implementation for covariant type arguments.

For example, supertype bounds with the out keyword will return matching supertypes for the type arguments.

Report a problem

Return

A list of TypeInfo representing the base type with covariant type arguments.

actual fun TypeInfo.typeParametersHierarchy(): Sequence<TypeInfo>(source)

This kind of reflection is currently only supported for the JVM platform.

For non-JVM platforms, we omit support for resolving covariant types of declared dependencies.

Report a problem