Closed kuanyingchou closed 9 months ago
I can't seem to reproduce this issue in our test setup, can you provide more context on the classes involved in this test?
Oh, I used AsMemberOfProcessor
and this:
val base = resolver.getClassDeclarationByName("Base")!!
val function = base.getDeclaredFunctions().single { it.simpleName.asString() == "returnArg1" }
function.asMemberOf(base.asType(emptyList()))
Base
is defined in asMemberOf.kt
:
open class Base<BaseTypeArg1, BaseTypeArg2> { ... }
This may be intended behavior and I haven't figured out why we do this in XProcessing but calling
asMemberOf()
with a generic type without supplying arguments like this:leads to exceptions like this in KSP2 but not in KSP1:
Tested with https://github.com/google/ksp/commit/42217b8cbf11609d42eee71a607e4011904c6cd8 and
2.0.0-Beta3-1.0.18-20240207.110119-15
.