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
valc22:Int=3--Warning:--------------------------------------------------------------------2| (2, (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 4))
|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^|pattern'stypescala.runtime.TupleXXL does not match the right hand side expression'stype (Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int| ,
|Int, Int, Int, Int, Int, Int, Int)
||If the narrowing is intentional, this can be communicated by adding `: @unchecked` after the expression,
|which may result in a MatchError at runtime.
Expectation
No warning, no inference of TupleXXL.
Note:
if the Tuple 23 pattern is at the top level then it is fine:
Compiler version
3.2.1
Minimized code
Output
Expectation
No warning, no inference of TupleXXL.
Note:
if the Tuple 23 pattern is at the top level then it is fine:
The text was updated successfully, but these errors were encountered: