summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2007-06-22 12:05:34 +0000
committerMartin Odersky <odersky@gmail.com>2007-06-22 12:05:34 +0000
commitb5df8e35174b78f7ab83ed0483af47b41fbbeae7 (patch)
treeeb7fe843ca4a76484e18b4547cd260faecac1e51
parented89b3493853d9a62b084e04b987ce19845efbf4 (diff)
downloadscala-b5df8e35174b78f7ab83ed0483af47b41fbbeae7.tar.gz
scala-b5df8e35174b78f7ab83ed0483af47b41fbbeae7.tar.bz2
scala-b5df8e35174b78f7ab83ed0483af47b41fbbeae7.zip
fixed problem with boxing in cases noted by Burak
-rw-r--r--src/compiler/scala/tools/nsc/transform/Erasure.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/Erasure.scala b/src/compiler/scala/tools/nsc/transform/Erasure.scala
index 59e63b043d..d74387471e 100644
--- a/src/compiler/scala/tools/nsc/transform/Erasure.scala
+++ b/src/compiler/scala/tools/nsc/transform/Erasure.scala
@@ -859,6 +859,9 @@ abstract class Erasure extends AddInterfaces with typechecker.Analyzer {
checkNoDoubleDefs(tree.symbol.owner)
copy.Template(tree, parents, emptyValDef, addBridges(body, currentOwner))
+ case Match(selector, cases) =>
+ Match(Typed(selector, TypeTree(selector.tpe)), cases)
+
case _ =>
tree
}