Skip to content
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

Backquoted underbar: unsupported pattern: Star / p3 #9106

Open
scabug opened this issue Jan 21, 2015 · 1 comment
Open

Backquoted underbar: unsupported pattern: Star / p3 #9106

scabug opened this issue Jan 21, 2015 · 1 comment

Comments

@scabug
Copy link

scabug commented Jan 21, 2015

I'm still hoping to receive my "Underbar ist wunderbar!" t-shirt. (Maybe it's even funnier in Swedish.)

This is pretty benign, but since somebody reported it:

apm@mara:~/projects/snytt$ scala210
Welcome to Scala version 2.10.4 (OpenJDK 64-Bit Server VM, Java 1.7.0_65).
Type in expressions to have them evaluated.
Type :help for more information.

scala> (1 to 9).toList match { case List(`_`*) => true }
res0: Boolean = true

scala> apm@mara:~/projects/snytt$ scala
Welcome to Scala version 2.11.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_25).
Type in expressions to have them evaluated.
Type :help for more information.

scala> (1 to 9).toList match { case List(`_`*) => true }
<console>:8: error: unsupported pattern: Star / p3: List[Int] @ (`_`)* (this is a scalac bug.)
              (1 to 9).toList match { case List(`_`*) => true }
                                                   ^
@scabug
Copy link
Author

scabug commented Jan 21, 2015

Imported From: https://issues.scala-lang.org/browse/SI-9106?orig=1
Reporter: @som-snytt
Affected Versions: 2.11.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants