summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorMatthias Zenger <mzenger@gmail.com>2003-09-11 10:39:10 +0000
committerMatthias Zenger <mzenger@gmail.com>2003-09-11 10:39:10 +0000
commit2be75c2c4219bf03eb1af87d14c0bd0f49b5fd27 (patch)
tree002605d765398a0565811221d354f60667a77050 /sources
parentc015c50dd2988aab0f2398ad24c55ca11bffcba0 (diff)
downloadscala-2be75c2c4219bf03eb1af87d14c0bd0f49b5fd27.tar.gz
scala-2be75c2c4219bf03eb1af87d14c0bd0f49b5fd27.tar.bz2
scala-2be75c2c4219bf03eb1af87d14c0bd0f49b5fd27.zip
I reverted to the old version because the new o...
I reverted to the old version because the new one broke the male
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/ast/parser/Parser.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scalac/ast/parser/Parser.java b/sources/scalac/ast/parser/Parser.java
index a4ed9abad0..6e4912a7c3 100644
--- a/sources/scalac/ast/parser/Parser.java
+++ b/sources/scalac/ast/parser/Parser.java
@@ -1204,7 +1204,7 @@ public class Parser implements Tokens {
Tree top = simplePattern();
if (s.token == COLON) {
if (TreeInfo.isVarPattern(top)) {
- return make.Typed(s.skipToken(), top, type());
+ return make.Typed(s.skipToken(), top, type1());
}
}
if (s.token == IDENTIFIER) {
@@ -1688,7 +1688,7 @@ public class Parser implements Tokens {
*/
Tree patDefOrDcl(int mods) {
int pos = s.pos;
- Tree pat = validPattern();
+ Tree pat = pattern();
Tree tp;
switch (pat) {
case Typed(Tree pat1, Tree tp1):