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
In the following example, the nullness checker rejects an input that contains a type variable with an explicit extends @Nullable Object bound, and accepts the same example if the explicit bound is removed.
The CLIMB-to-top defaults say implicit type variable bounds are interpreted as equivalent extends @Nullable Object, is this a bug?
Yes, this a bug. For some reason, the code that infers the type arguments for the diamond is ignoring the explicit annotation on the type variable. (The errors disappear with new B<Object, V>(this);)
In the following example, the nullness checker rejects an input that contains a type variable with an explicit
extends @Nullable Object
bound, and accepts the same example if the explicit bound is removed.The CLIMB-to-top defaults say implicit type variable bounds are interpreted as equivalent
extends @Nullable Object
, is this a bug?With Checker Framework 3.21.3:
The code compiles without error if
extends @Nullable Object
is removed.The text was updated successfully, but these errors were encountered: