diff options
author | Martin Odersky <odersky@gmail.com> | 2010-02-26 18:31:35 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2010-02-26 18:31:35 +0000 |
commit | 462e27a358fc466d51aaeec28c994c6667d320eb (patch) | |
tree | 9d17b193c5062949116e88f0ca9ec61d1aa2056d /src/compiler/scala/tools/nsc/typechecker/Typers.scala | |
parent | 2b1513b35e3172a9045946f2621167a7310a1855 (diff) | |
download | scala-462e27a358fc466d51aaeec28c994c6667d320eb.tar.gz scala-462e27a358fc466d51aaeec28c994c6667d320eb.tar.bz2 scala-462e27a358fc466d51aaeec28c994c6667d320eb.zip |
closes #3082, review by rytz
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index 380a0112f6..504e940848 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -1896,7 +1896,7 @@ trait Typers { self: Analyzer => val sym2 = namer.enterInScope( context.owner.newLabel(ldef.pos, ldef.name) setInfo MethodType(List(), restpe)) //val subst = new TreeSymSubstituter(List(ldef.symbol), List(sym2)) - val rhs2 = typed(ldef.rhs/*subst(ldef.rhs)*/, restpe) + val rhs2 = typed(ldef.rhs, restpe) ldef.params foreach (param => param.tpe = param.symbol.tpe) treeCopy.LabelDef(ldef, ldef.name, ldef.params, rhs2) setSymbol sym2 setType restpe } |