diff options
author | paltherr <paltherr@epfl.ch> | 2004-02-12 15:10:40 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-02-12 15:10:40 +0000 |
commit | 2014d1feeefd1bc6bcfee0cee347c4a77db05253 (patch) | |
tree | deffe18f0bf6527171d655885445abc8bb17023b /sources/scalac/checkers/TreeChecker.java | |
parent | b62de8dc4f94efa47bf6714865b8bbf4df700046 (diff) | |
download | scala-2014d1feeefd1bc6bcfee0cee347c4a77db05253.tar.gz scala-2014d1feeefd1bc6bcfee0cee347c4a77db05253.tar.bz2 scala-2014d1feeefd1bc6bcfee0cee347c4a77db05253.zip |
- Changed Tree.Block(Tree[]) to Tree.Block(Tree...
- Changed Tree.Block(Tree[]) to Tree.Block(Tree[],Tree)
Diffstat (limited to 'sources/scalac/checkers/TreeChecker.java')
-rw-r--r-- | sources/scalac/checkers/TreeChecker.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sources/scalac/checkers/TreeChecker.java b/sources/scalac/checkers/TreeChecker.java index c6d2af5052..9351110558 100644 --- a/sources/scalac/checkers/TreeChecker.java +++ b/sources/scalac/checkers/TreeChecker.java @@ -227,12 +227,11 @@ public class TreeChecker { scopeRemoveLabel(symbol); return true; - case Block(Tree[] statements): + case Block(Tree[] statements, Tree value): Set locals = new HashSet(); - for (int i = 0; i < statements.length - 1; i++) + for (int i = 0; i < statements.length; i++) statement(locals, statements[i]); - if (statements.length > 0) - expression(statements[statements.length - 1], expected); + expression(value, expected); for (Iterator i = locals.iterator(); i.hasNext(); ) scopeRemoveVVariable((Symbol)i.next()); return true; |