Skip to content

Adding KModifier for interface type parameter. #1208

Closed Answered by Egorand
vnermolaev asked this question in Q&A
Discussion options

You must be logged in to vote

What you're looking for is probably something along the lines of:

List::class.asClassName().parameterizedBy(
    WildcardTypeName.producerOf(Base::class.asTypeName())
)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vnermolaev
Comment options

@Egorand
Comment options

Answer selected by vnermolaev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants