We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With generic interfaces:
interface Bar<T> interface BarIn<in T> interface BarOut<out T>
And this test:
fun KSDeclaration.printTypeParams() { val params = typeParameters.joinToString { "${it.variance} ${it.name.asString()}" } println("${simpleName.asString()} $params") } resolver.getClassDeclarationByName("Bar")!!.printTypeParams() resolver.getClassDeclarationByName("BarIn")!!.printTypeParams() resolver.getClassDeclarationByName("BarOut")!!.printTypeParams()
I got this with KSP1:
Bar INVARIANT T BarIn CONTRAVARIANT T BarOut COVARIANT T
But this with KSP2:
Bar INVARIANT T BarIn COVARIANT T BarOut CONTRAVARIANT T
Tested with 2.0.0-Beta3-1.0.18-20240219.110134-28 and a0cd777.
2.0.0-Beta3-1.0.18-20240219.110134-28
The text was updated successfully, but these errors were encountered:
neetopia
Successfully merging a pull request may close this issue.
With generic interfaces:
And this test:
I got this with KSP1:
But this with KSP2:
Tested with
2.0.0-Beta3-1.0.18-20240219.110134-28
and a0cd777.The text was updated successfully, but these errors were encountered: