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

"wrong number of arguments for object" error using extractor #5041

Closed
scabug opened this issue Sep 29, 2011 · 4 comments
Closed

"wrong number of arguments for object" error using extractor #5041

scabug opened this issue Sep 29, 2011 · 4 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Sep 29, 2011

Using scala-2.10.0.r25759-b20110929023607, compiling the following:

case class Token(text: String, startIndex: Int)

object Comment {

  def unapply(s: String): Option[Token] = None

}

object HiddenTokens {

  "foo" match { case Comment(_) => }

}

Gives the error:

Comment.scala:11: error: wrong number of arguments for object Comment
  "foo" match { case Comment(_) => }
                            ^
one error found
@scabug
Copy link
Author

scabug commented Sep 29, 2011

Imported From: https://issues.scala-lang.org/browse/SI-5041?orig=1
Reporter: Matt Russell (mattrussell)
Other Milestones: 2.10.0

@scabug
Copy link
Author

scabug commented Dec 5, 2011

Matt Russell (mattrussell) said:
I don't get the error in scala-2.10.0.r26084-b20111129023531.

@scabug
Copy link
Author

scabug commented Dec 5, 2011

@paulp said:
Doesn't close without a test case.

@scabug
Copy link
Author

scabug commented May 26, 2012

@retronym said:
scala/scala#630

@scabug scabug closed this as completed May 26, 2012
@scabug scabug added this to the 2.10.0-M3 milestone Apr 7, 2017
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