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

Document error on scala.Enumeration.withName #2527

Closed
scabug opened this issue Oct 25, 2009 · 4 comments
Closed

Document error on scala.Enumeration.withName #2527

scabug opened this issue Oct 25, 2009 · 4 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Oct 25, 2009

I'm aware of that scala.Enumeration.valueOf is deprecated, should use withName instead, and now the return type of withName is Value instead of Some(Value).

Although I preferred Some(Value) over Value. But, if this is the final decision, then please take a look at the document comment, which on withName still says that it will return Some(Value).

@scabug
Copy link
Author

scabug commented Oct 25, 2009

Imported From: https://issues.scala-lang.org/browse/SI-2527?orig=1
Reporter: @dcaoyuan
See #5211

@scabug
Copy link
Author

scabug commented Oct 27, 2009

@odersky said:
will be fixed on next checkin

@scabug
Copy link
Author

scabug commented Oct 27, 2009

@dcaoyuan said:
bring back by r19311 :-)

@scabug
Copy link
Author

scabug commented Nov 3, 2009

@phaller said:
This is fixed in r19387 (trunk). I also updated the test in run/enums.scala.

@scabug scabug closed this as completed May 18, 2011
@scabug scabug added the enum label Apr 7, 2017
@scabug scabug added this to the 2.8.0 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants