summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-05-13 03:41:17 +0000
committerPaul Phillips <paulp@improving.org>2010-05-13 03:41:17 +0000
commite7ce9b9723f98c77dd2d47b1c00cd4f214198243 (patch)
tree26b6f7d7a5cbf2b9fccca4d61c22e77199610595 /src/compiler
parent5f5660dd6ea1a885eaa95ead9a82b0a94ac09c97 (diff)
downloadscala-e7ce9b9723f98c77dd2d47b1c00cd4f214198243.tar.gz
scala-e7ce9b9723f98c77dd2d47b1c00cd4f214198243.tar.bz2
scala-e7ce9b9723f98c77dd2d47b1c00cd4f214198243.zip
Should fix the interpreter bug I just introduced.
crashing-under-optimise test into pending since that looks like a genuine bug - I'll open it a ticket. No review.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/Interpreter.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Interpreter.scala b/src/compiler/scala/tools/nsc/Interpreter.scala
index 70d416e19e..74d37bd31e 100644
--- a/src/compiler/scala/tools/nsc/Interpreter.scala
+++ b/src/compiler/scala/tools/nsc/Interpreter.scala
@@ -419,7 +419,7 @@ class Interpreter(val settings: Settings, out: PrintWriter) {
}
/** Flatten the handlers out and pair each with the original request */
- select(allReqAndHandlers map { case (r, h) => ReqAndHandler(r, h) }, wanted)
+ select(allReqAndHandlers reverseMap { case (r, h) => ReqAndHandler(r, h) }, wanted).reverse
}
val code, trailingBraces, accessPath = new StringBuffer