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
Not an expert so may be wrong, but ....
I expected val ll0 to contain a tuple of the same type (Numeric) however the second element of the tuple is inferred to be AnyVal. This may be related to #8956 but it looks like type projection may also be causing problems.
The text was updated successfully, but these errors were encountered:
hmf
changed the title
Probken with inferencewhen using Iterator.sliding on Union types
Problem with inference when using Iterator.sliding on Union types
May 12, 2020
hmf
changed the title
Problem with inference when using Iterator.sliding on Union types
Problem with type inference when using Iterator.sliding on Union types
May 12, 2020
Uh oh!
There was an error while loading. Please reload this page.
Minimized code
Output
The line:
generates the error:
Expectation
Not an expert so may be wrong, but ....
I expected
val ll0
to contain a tuple of the same type (Numeric
) however the second element of the tuple is inferred to beAnyVal
. This may be related to #8956 but it looks like type projection may also be causing problems.The text was updated successfully, but these errors were encountered: