You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Properly model UNSPECIFIED nullness from JSpecify #2177
This will give us a cleaner way to avoid false positives warnings related to unmarked code in JSpecify mode. Right now we have selective one-off checks in various places but that clutters the code if we keep going (see the changes in #2080). A rough idea for how to go about this:
For relevant types from unmarked code, make a pass and use a synthetic annotation to mark positions with unspecified nullness (this would exclude positions that have explicit nullability annotations). Fix false positives in override checking of methods with PolyNull models #2143 uses a similar masking approach for dealing with override checking for @PolyNull; probably the logic can be shared.
Update generics checking and inference to properly handle unspecified nullness. Given we want to use a "some world" handling of unspecified, I think this basically means anything is a subtype of unspecified (or equal nullability for type arguments), while unspecified is a subtype of anything.
Activity