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

Comments

@scabug
Copy link

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

This comment has been minimized.

Copy link
Author

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

This comment has been minimized.

Copy link
Author

commented Dec 5, 2011

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

@scabug

This comment has been minimized.

Copy link
Author

commented Dec 5, 2011

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

@scabug

This comment has been minimized.

Copy link
Author

commented May 26, 2012

@scabug scabug closed this 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
Projects
None yet
2 participants
You can’t perform that action at this time.