Skip to content

Kotlin: fix extraction of Java nested wildcards; wildcards in return types #11121

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

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

smowton
Copy link
Contributor

@smowton smowton commented Nov 4, 2022

This fixes two mistakes: return-type extraction not imposing a wildcard where a Java prototype explicitly uses one, and nested wildcard detection quietly failing due to not looking through a JavaWildcardType correctly.

I add a variant of the kotlin_java_lowering_wildcards test where Java prototypes are only seen from Kotlin, to be sure extraction is working as expected.

…types

This fixes two mistakes: return-type extraction not imposing a wildcard where a Java prototype explicitly uses one, and nested wildcard detection quietly failing due to not looking through a `JavaWildcardType` correctly.

I add a variant of the `kotlin_java_lowering_wildcards` test where Java prototypes are only seen from Kotlin, to be sure extraction is working as expected.
@smowton smowton requested review from a team as code owners November 4, 2022 11:39
@smowton smowton merged commit 1cd3084 into github:main Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants