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
Gabriel-Darbord
changed the title
ValueLinker: origin type inference is overriden by serialized type information
Source type inference is overriden by serialized type information
Dec 21, 2023
Actually we want this behavior, however what we're missing are the type parameters of the concrete type.
In the example given above, it is correct to have an HashMap instead of a Map, however the <String, String> information is missing.
At some place, at some time, the value's concrete type and the code's type parameters should be used together to obtain the right type: HashMap<String, String>.
Example origin:
Example serialized value:
The type inference ends up being
HashMap
and argument types (String
) are lost.The text was updated successfully, but these errors were encountered: