New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.8 regression: "@ _*" fails #3480
Comments
Imported From: https://issues.scala-lang.org/browse/SI-3480?orig=1 |
Atsuhiko Yamanaka (ymnk) said: $$ scala
Welcome to Scala version 2.8.0.r22036-b20100526020129 (Java HotSpot(TM) Client VM, Java 1.6.0_16).
Type in expressions to have them evaluated.
Type :help for more information.
scala> val List(x@_*)=List(0)
<console>:1: error: illegal start of simple pattern
val List(x@_*)=List(0)
|
Atsuhiko Yamanaka (ymnk) said: |
@milessabin said: |
Lukas Pustina (lukas.pustina) said:
ACK. Besides, it would be helpful to change the link on https://lampsvn.epfl.ch/trac/scala "Components: Tickets about, Scala IDE for Eclipse" to point to the mentioned link. |
@milessabin said: |
@SethTisue said: ~> scalac28 S.scala
S.scala:6: error: illegal start of simple pattern
val Array( who, what @ _* ) = aString split (" ")
^ |
Using both, eclipse plugin as well as scala, from today's revision (2.8.0.r22036-b20100526020129).
The valid use of "@ _*" is correctly compiled by scala but fails to be parsed in the eclipse plugin.
Example:
The text was updated successfully, but these errors were encountered: