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

Suspendable method with type parameter in value class does not compile. #6653

Closed
scabug opened this issue Nov 12, 2012 · 3 comments
Closed

Comments

@scabug
Copy link

scabug commented Nov 12, 2012

import scala.util.continuations._

// Good!
class SusppendableMethodInAnyRef[Value](val underlying: Int) extends AnyRef {
  final def foo[A](accessor: List[A]): List[A] @suspendable = {
    val result: List[A] = shiftUnit[List[A], Unit, Unit](accessor)
    result
  }
}

// Bad!
class SusppendableMethodInAnyVal[Value](val underlying: Int) extends AnyVal {
  final def foo[A](accessor: List[A]): List[A] @suspendable = {
    val result: List[A] = shiftUnit[List[A], Unit, Unit](accessor)
    result
  }
}
@scabug
Copy link
Author

scabug commented Nov 12, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6653?orig=1
Reporter: @Atry
Affected Versions: 2.10.0-M4, 2.10.0-M5, 2.10.0-M6, 2.10.0-M7, 2.10.0-RC1, 2.10.0-RC2

@scabug
Copy link
Author

scabug commented Nov 26, 2013

@paulp said:
This compiles in the released 2.10.

@scabug
Copy link
Author

scabug commented Feb 26, 2015

@adriaanm said:
Sorry, the continuations plugin has been unsupported for a while now. Please open an issue over at https://github.com/scala/scala-continuations (we're still looking for a maintainer for it, though).

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

1 participant