-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add doc about reified
keyword
#939
Comments
What's the full stacktrace? That snippet isn't enough context |
The signature of the function you're trying to use is (see operator fun invoke(name: String, variance: KModifier? = null): TypeVariableName So although it accepts a |
|
The line:
points to: |
Any thoughts on how we can improve this? Having a parameter like I'm also not sure what exactly you'd like to see in the docs to make the correct solution more obvious. Please feel free to send us PRs. |
How about TypeVariableModifier |
To make the correct solution more obvious:
In my view, And the best way is, adding support about @Egorand |
I guess we can introduce a new factory method that takes in a |
I think it's helpful to clear the usage. |
if want to create a function like this:
the correct but not obvious code of kotlinpoet should be (1.6.0):
the wrong but obvious way is :
and will throw:
it's hard to know
KModifier.REIFIED
use case. or it will never be used?The text was updated successfully, but these errors were encountered: