diff options
author | buraq <buraq@epfl.ch> | 2004-06-04 14:07:00 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2004-06-04 14:07:00 +0000 |
commit | 53445e748ade5da3a887b2b57cbab086306bf669 (patch) | |
tree | b7fd748455d768224ae7f36fe48586af86c9b73e /sources | |
parent | 74a305485ac3670412142e6d1425cfdab0056d1d (diff) | |
download | scala-53445e748ade5da3a887b2b57cbab086306bf669.tar.gz scala-53445e748ade5da3a887b2b57cbab086306bf669.tar.bz2 scala-53445e748ade5da3a887b2b57cbab086306bf669.zip |
fixed2
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/transformer/matching/TestRegTraverser.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sources/scalac/transformer/matching/TestRegTraverser.java b/sources/scalac/transformer/matching/TestRegTraverser.java index c23334bf35..e5dae1fc6a 100644 --- a/sources/scalac/transformer/matching/TestRegTraverser.java +++ b/sources/scalac/transformer/matching/TestRegTraverser.java @@ -59,7 +59,13 @@ public class TestRegTraverser extends Traverser { //result = true; break; - // Matthias PatternMatcher cannot handle this case + case Apply(Tree fun, Tree[] args): + traverse(fun); + traverse(args); + if(( args.length == 1 )&&TreeInfo.isEmptySequence(args[ 0 ])) + result = false; + return; + // Matthias PatternMatcher cannot handle this case /* case Apply( Tree fn, Tree[] trees ): if( trees.length == 1 ) |