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

Example from Scaladoc for Either does not compile #10225

Closed
scabug opened this issue Mar 13, 2017 · 3 comments
Closed

Example from Scaladoc for Either does not compile #10225

scabug opened this issue Mar 13, 2017 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Mar 13, 2017

The 2.12.1 Scaladoc page for Either includes the following example:

{code}Left(23).map(_ * 2) // Left(23){code}

But this example does not compile:

$ scala
Welcome to Scala 2.12.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_102).
Type in expressions for evaluation. Or try :help.

scala> Left(23).map(_ * 2)
<console>:12: error: value * is not a member of Nothing
       Left(23).map(_ * 2)
@scabug
Copy link
Author

scabug commented Mar 13, 2017

Imported From: https://issues.scala-lang.org/browse/SI-10225?orig=1
Reporter: Konstantin Läufer (laufer)
Affected Versions: 2.12.1

@scabug
Copy link
Author

scabug commented Mar 14, 2017

@som-snytt said:
Improves several similar snippets.

scala/scala#5778

@scabug
Copy link
Author

scabug commented Mar 22, 2017

@som-snytt said:
It's also not pastable. #9016

@scabug scabug closed this as completed Mar 27, 2017
@scabug scabug added this to the 2.12.2 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
Development

No branches or pull requests

2 participants