diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-04-13 13:58:48 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-04-14 11:50:27 +0200 |
commit | 98a85ccae54195ee17f4b4aa12c22d018fd43bee (patch) | |
tree | 07d821fe403fc8746bb651317087cd372ca22c7e /src | |
parent | f5857462ccb770f3433637efa3c342ec98622137 (diff) | |
download | scala-98a85ccae54195ee17f4b4aa12c22d018fd43bee.tar.gz scala-98a85ccae54195ee17f4b4aa12c22d018fd43bee.tar.bz2 scala-98a85ccae54195ee17f4b4aa12c22d018fd43bee.zip |
cleanup in refchecks
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala index af75c75156..2d656e02b4 100644 --- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala +++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala @@ -1655,9 +1655,10 @@ abstract class RefChecks extends InfoTransform with reflect.internal.transform.R inPattern = false treeCopy.CaseDef(tree, pat1, transform(guard), transform(body)) case LabelDef(_, _, _) if gen.hasSynthCaseSymbol(result) => + val old = inPattern inPattern = true val res = deriveLabelDef(result)(transform) - inPattern = false + inPattern = old res case _ => super.transform(result) |