Skip to content
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

Capture of Object* is not compatible with Object*. #487

Closed
wants to merge 1 commit into from

Conversation

wmdietl
Copy link
Collaborator

@wmdietl wmdietl commented Feb 26, 2024

jspecify/jspecify-reference-checker#165 (comment)

Using a wildcard that captures Object* is not compatible with an Object* bound.

@cpovirk
Copy link
Collaborator

cpovirk commented Feb 27, 2024

As discussed in jspecify/jspecify-reference-checker#165 (comment), I'm hoping that we can justify avoiding an error in this case.

If you want to get the tests to pass with the current behavior, then I suggest jspecify_but_expect_warning instead (to indicate that the checker currently produces an error in strict mode but (if I'm right) that it shouldn't).

@wmdietl wmdietl closed this Mar 15, 2024
@wmdietl wmdietl deleted the main-star-star branch March 15, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants