summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2006-03-15 09:34:22 +0000
committerBurak Emir <emir@epfl.ch>2006-03-15 09:34:22 +0000
commit51565df03873b827ce630d5d4fb9409edbf0980a (patch)
tree9ec26c50740ab4bb22b46ea464f6894eba11e82f /src
parent37e705bd66c1447888c428773298d735e1e36f8c (diff)
downloadscala-51565df03873b827ce630d5d4fb9409edbf0980a.tar.gz
scala-51565df03873b827ce630d5d4fb9409edbf0980a.tar.bz2
scala-51565df03873b827ce630d5d4fb9409edbf0980a.zip
oops, adding makeBind(.) didn't actually work
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala b/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala
index 195007e6f9..0a72c94845 100644
--- a/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala
+++ b/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala
@@ -266,7 +266,7 @@ abstract class TreeBuilder {
val rhss = valeqs map { case ValEq(_, _, rhs) => rhs }
val defpats = pats map (x => makeBind(x.duplicate))
val pdefs = List.flatten(List.map2(defpats, rhss)(makePatDef))
- val ids = (makeBind(pat) :: defpats) map makeValue
+ val ids = (pat :: defpats) map makeValue
val rhs1 = makeForYield(
List(ValFrom(pos, makeBind(pat.duplicate), rhs)),
Block(pdefs, makeTupleTerm(ids)))