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
[error] (run-main-0) java.lang.ClassCastException: [I cannot be cast to scala.collection.immutable.Seq
[error] java.lang.ClassCastException: [I cannot be cast to scala.collection.immutable.Seq
[error] at Main$.main(Main.scala:8)
[error] at Main.main(Main.scala)
[error] at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
[error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error] at java.lang.reflect.Method.invoke(Method.java:498)
It is simple main with code above. Also tried in dotty REPL built from master - same exception.
The text was updated successfully, but these errors were encountered:
arri.scala:4:error: no `:_*' annotation allowed here
(such annotations are only allowed in arguments to *-parameters)
vallst:List[String] =List("x", arr: _*)
^1 error
Compiler version
3.0.0-M4-bin-20210214-80befc3-NIGHTLY
Minimized code
(from docs on unified varargs syntax)
Output (click arrow to expand)
It is simple main with code above. Also tried in dotty REPL built from master - same exception.
The text was updated successfully, but these errors were encountered: