-
Notifications
You must be signed in to change notification settings - Fork 302
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
In JSpecify mode, Generic<Void>
is not accepted as a subtype of Generic<@Nullable Void>
#1172
Comments
@Stephan202 haven't looked in detail, but in general, |
Ah, this is about to opposite case. I must admit that I didn't read a recent version of the JSpecify spec, but I would expect
Yep, that would work in the given example. Unfortunately the real-world cases involve |
Yeah, generics are always confusing.
Yeah, I think that ideally, that library would be updated to use See jspecify/jspecify#51 for some discussion from the JSpecify side of things. |
I just realized that subconsciously I've been interpreting the latter as I might also file an issue with Project Reactor to see whether they're open to using |
Regarding wildcards, NullAway support for that is basically non-existent even in JSpecify mode. So you might get errors in the future 🙂 if we can get the library updated to use JSpecify that's probably the best way to go. |
See this discussion for context.
This reproduction case shows that the issue is specific to generic type usages:
This produces the following warning:
The text was updated successfully, but these errors were encountered: