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

extension method type parameter bounded by class param #7022

Closed
scabug opened this issue Jan 25, 2013 · 4 comments
Closed

extension method type parameter bounded by class param #7022

scabug opened this issue Jan 25, 2013 · 4 comments

Comments

@scabug
Copy link

@scabug scabug commented Jan 25, 2013

Works as a regular class, not as a value class.

  import scala.util.control.Exception._

  implicit class RichCatch[T](val c: Catch[T]) extends AnyVal {
    def validation[U >: T](u: => U): Either[Throwable, U] = c.either(u) 
  }
@scabug
Copy link
Author

@scabug scabug commented Jan 25, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7022?orig=1
Reporter: @retronym
Affected Versions: 2.10.0
See #6482

@scabug
Copy link
Author

@scabug scabug commented Jan 25, 2013

@paulp said:
This is #6482, fixed by ff9f60f420c0 in master. I believe it's an easy backport.

@scabug
Copy link
Author

@scabug scabug commented Jan 25, 2013

@paulp said:
I just clicked assign-to-me but I won't get to it immediately or anything so take it back if you want it.

@scabug
Copy link
Author

@scabug scabug commented Jan 26, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants