Skip to content

Scalac crashes when accessing private companion object in a matcher in cps context #6585

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

Closed
scabug opened this issue Oct 30, 2012 · 4 comments

Comments

@scabug
Copy link

scabug commented Oct 30, 2012

This code works on Scala 2.9.2 and 2.10.0-M2, and crashes from 2.10.0-M3 to 2.10.0-RC1

import scala.util.continuations._

private object Foo {
  private class Bar
}

class Foo {
  import Foo.Bar

  private def bad(): Bar @suspendable = {
    "baz" match {
      case _ =>
        shift { (continue: Bar => Unit) => }
    }
  }
}
@scabug
Copy link
Author

scabug commented Oct 30, 2012

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

@scabug
Copy link
Author

scabug commented Feb 21, 2013

@adriaanm said:
We don't have the resources to fix CPS bugs. We will probably drop support for it in 2.11.

@scabug
Copy link
Author

scabug commented Feb 21, 2013

@Atry said:
Oh no!

@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