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
scala>typeVarArgs= (Any*)
defined typealiasVarArgs
scala>deffoo(v: VarArgs) =0Exception in thread "main" scala.MatchError: $$iw.$$iw.VarArgs
at scala.tools.nsc.typechecker.RefChecks$$RefCheckTransformer.varargBridg
e$$1(RefChecks.scala:126)
at
I think it should be prevented in the same as a by-name params:
scala>typeLazyString= (=>String)
<console>:1:error: no by-name parameter typeallowed here
typeLazyString= (=>String)
The text was updated successfully, but these errors were encountered:
I think it should be prevented in the same as a by-name params:
The text was updated successfully, but these errors were encountered: