-
Notifications
You must be signed in to change notification settings - Fork 21
internal compiler error when matching Text to NodeSeq #2883
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-2883?orig=1
|
James McCalden (jmccalden) said: |
James McCalden (jmccalden) said: |
James McCalden (jmccalden) said: |
@lindydonna said: |
@paulp said: |
When trying to match a NodeSeq with a Text element case the following internal compiler error is thrown:
Exception in thread "main" scala.tools.nsc.symtab.Types$$TypeError: too many arguments for method body%2: ()java.lang.Object
Example source and full debug compiler output are attached.
This code worked fine in 2.7.7 but causes an internal compiler error in 2.8.0.r20397-b20100107020241 and 2.8.0.r20423-b20100109020145. There are potentially problems with the approach taken in the example code so it's possible it should still throw a compile error, but never an internal compiler error.
Removing the Text case or changing the code to iterate over the NodeSeq and match each individual node (as in the commented out section) allows the code to compile fine.
The text was updated successfully, but these errors were encountered: