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
error: [argument] incompatible argument for parameter x of Math.addExact.
found : long
required: @Interned long
It is true that the boxed capital-L Long values in the list are not interned, but I believe they should be treated as interned once they are unboxed to primitive lower-case-L long values.
The text was updated successfully, but these errors were encountered:
Calvin-L
added a commit
to Calvin-L/checker-framework
that referenced
this issue
Oct 15, 2024
Fixestypetools#6371.
The interning checker does not apply `@Interned` to every occurrence of
every primitive type. This allows some language constructs to
fabricate non-interned primitive values, leading to false positives.
For instance, in the new `loopVariables` test, the loop variable `i`
was assigned the type `@UnknownInterned long`. Thus `i` could not be
used as an argument to `addExact` which requires interned arguments.
For the above code, the Interning Checker reports
It is true that the boxed capital-L
Long
values in the list are not interned, but I believe they should be treated as interned once they are unboxed to primitive lower-case-Llong
values.The text was updated successfully, but these errors were encountered: