diff options
author | Burak Emir <emir@epfl.ch> | 2007-07-07 21:18:23 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2007-07-07 21:18:23 +0000 |
commit | 573b5e2c86117e5741931e3a63d60df463c2dda5 (patch) | |
tree | 7270a02cce3d7c58bddd662d58007bcfd86d87f8 | |
parent | b98eb1d74141a4159539d373e6216e799d6b6dcd (diff) | |
download | scala-573b5e2c86117e5741931e3a63d60df463c2dda5.tar.gz scala-573b5e2c86117e5741931e3a63d60df463c2dda5.tar.bz2 scala-573b5e2c86117e5741931e3a63d60df463c2dda5.zip |
try fix hashing of case bodies
-rw-r--r-- | src/compiler/scala/tools/nsc/matching/ParallelMatching.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala b/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala index e671e60adc..543a4453d8 100644 --- a/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala +++ b/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala @@ -646,12 +646,12 @@ trait ParallelMatching { // make first case a default case. if(mc.scrutinee.tpe.symbol.hasFlag(symtab.Flags.SEALED) && defaultV.isEmpty) { - ndefault = cases.head.body + ndefault = genBody(Nil, cases.head.body) cases = cases.tail } if(cases.length == 0) { - genBody(Nil, ndefault) + ndefault } else if(cases.length == 1) { val CaseDef(lit,_,body) = cases.head makeIf(Equals(Select(Ident(mc.scrutinee),nme.tag),lit), body, ndefault) // * |