summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-04-23 15:38:07 +0000
committermichelou <michelou@epfl.ch>2007-04-23 15:38:07 +0000
commitbd7866c7940c41d5c4f3f88e09c7354126eabe15 (patch)
tree7b2a2bd12160cf920fac5fd7867218ded4f0967c /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
parent90c68e19144fa811671b8e1dc3ad0e7ecc5b487c (diff)
downloadscala-bd7866c7940c41d5c4f3f88e09c7354126eabe15.tar.gz
scala-bd7866c7940c41d5c4f3f88e09c7354126eabe15.tar.bz2
scala-bd7866c7940c41d5c4f3f88e09c7354126eabe15.zip
updated self aliases, for-comprehensions
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/parser/Parsers.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
index e9f388f1f3..bdbc3532b4 100644
--- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
+++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
@@ -1877,7 +1877,7 @@ trait Parsers {
}
trees
}
- for (val p <- lhs.toList; val d <- mkDefs(p)) yield d
+ for (p <- lhs.toList; d <- mkDefs(p)) yield d
}
/** VarDef ::= Id {`,' Id} [`:' Type] `=' Expr
@@ -1903,7 +1903,7 @@ trait Parsers {
newmods = newmods | Flags.DEFERRED
EmptyTree
}
- for (val (pos, name) <- lhs.toList) yield
+ for ((pos, name) <- lhs.toList) yield
atPos(pos) { ValDef(newmods, name, tp.duplicate, rhs.duplicate) }
}