Open kuanyingchou opened 8 months ago
They do look to be same type to me tbh, do you feel KSP1's behavior is more close to your expectation?
Got it. We can change the logic on our side (in Java codegen they're different). I think maybe the issue can be kept for documentation, but feel free to close it. Thanks!
Given a generic type with declaration-site variance like this:
Types
BarIn<in String>
andBarIn<String>
are the same in KSP2 but not in KSP1.Repro: https://github.com/google/ksp/commit/904572fd590c5a3feff75cf31be6a614e8118a73