summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2007-01-05 16:55:58 +0000
committerBurak Emir <emir@epfl.ch>2007-01-05 16:55:58 +0000
commit114bfa60ec5c24a270de9b9fea4171f3c9afc5e6 (patch)
treef76d4c44aeb0831de7b473ffcadc66d7c182aac3 /src/compiler
parenta3d868bf57e42a3391df774a5e2cfd7123828625 (diff)
downloadscala-114bfa60ec5c24a270de9b9fea4171f3c9afc5e6.tar.gz
scala-114bfa60ec5c24a270de9b9fea4171f3c9afc5e6.tar.bz2
scala-114bfa60ec5c24a270de9b9fea4171f3c9afc5e6.zip
reverted change to syntheticmethods
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala b/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala
index 809ab4a5c2..5d0eb63925 100644
--- a/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala
@@ -78,8 +78,8 @@ trait SyntheticMethods requires Analyzer {
}
def productElementMethod(accs: List[Symbol]): Tree = {
- val retTpe = lub(accs map (.tpe.resultType))
- val method = syntheticMethod(nme.element, FINAL, MethodType(List(IntClass.tpe), retTpe))
+ //val retTpe = lub(accs map (.tpe.resultType))
+ val method = syntheticMethod(nme.element, FINAL, MethodType(List(IntClass.tpe), AnyClass.tpe/*retTpe*/))
typed(DefDef(method, vparamss => Match(Ident(vparamss.head.head), {
(for(val Pair(sym,i) <- accs.zipWithIndex) yield {
CaseDef(Literal(Constant(i)),EmptyTree, Ident(sym))