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
caseclassC(n: Int, ds: Double*)
defm(usingn: Int) = n+1C(1, 2, 3, 4) match { caseC(givenInt, ds*) => m }
Output Error/Warning message
1|C(1, 2, 3, 4) match { caseC(givenInt, ds*) => m }
|^|Nogiveninstance of typeInt was found for parameter n of method m
||Note:giveninstance given_Int was not considered because it was not imported with`import given`.
1 error found
Suggested improvement
Just as if the vararg parameter were a Seq .
caseclassC(n: Int, ds: Seq[Double])
defm(usingn: Int) = n+1C(1, Seq(2, 3, 4)) match { caseC(givenInt, ds) => m }
The text was updated successfully, but these errors were encountered:
Compiler version
3.5.2-RC1
Minimized example
Output Error/Warning message
Suggested improvement
Just as if the vararg parameter were a
Seq
.The text was updated successfully, but these errors were encountered: