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
generic type inference when combining containers with different element types
#2369
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to combine two
Cacheinstances with different element types and preserve both types in the result.Is
Cache[T | U]the correct return type here, or is there a better way to type this?What I'd like to avoid is losing type information or having to use
Anyorcast.All reactions