Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix assignable check for function types with deserialized descriptors.
E.g. a `kotlin.Function0` type is a Kotlin "fictional" type; the real JVM type it is backed by for JVM is `kotlin.jvm.functions.Function0`. Inside the compiler the backing type is always converted into Kotlin's one. Yet for KSP the `kotlin.jvm.functions.Function0` with its deserialized descriptor can be obtained directly (e.g. via `getJavaClassByName`) and used along with the `kotlin.Function0` type. This CL fixes the assignability check between such types. (cherry picked from commit beb57bc)
- Loading branch information
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters