We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the process of contrasting this translation with the status quo, I've uncovered a latent bug.
class C { def catchExpr1: PartialFunction[Throwable, Any] = ??? def test = { try {} catch catchExpr1 } }
% scalac -Xprint:parser sandbox/test.scala [[syntax trees at end of parser]] // test.scala package <empty> { class C extends scala.AnyRef { def <init>() = { super.<init>(); () }; def catchExpr1: PartialFunction[Throwable, Any] = $qmark$qmark$qmark; def test = try { () } catch { case (x$1 @ (_: Throwable)) => { <artifact> val catchExpr1 = catchExpr1; if (catchExpr1.isDefinedAt(x$1)) catchExpr1.apply(x$1) else throw x$1 } } } } sandbox/test.scala:4: error: recursive value catchExpr1 needs type try {} catch catchExpr1
Discovered during review of scala/scala#4334 / #5887
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-9245?orig=1 Reporter: @retronym Affected Versions: 2.11.6 See #5887
Sorry, something went wrong.
@retronym said: scala/scala#5219
som-snytt
No branches or pull requests
In the process of contrasting this translation with the status quo, I've uncovered a latent bug.
Discovered during review of scala/scala#4334 / #5887
The text was updated successfully, but these errors were encountered: