aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/transform/Erasure.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-03-11 16:14:35 +0100
committerMartin Odersky <odersky@gmail.com>2015-03-11 16:17:19 +0100
commit72dd9ea1ccbb98ee2dc4bf080772e8d9f13f3d75 (patch)
treea734f0862ceb8f8a177d45045e47afef7df91f8d /src/dotty/tools/dotc/transform/Erasure.scala
parent8195baf78b3305710174fca6f0e3ba58e60ca156 (diff)
downloaddotty-72dd9ea1ccbb98ee2dc4bf080772e8d9f13f3d75.tar.gz
dotty-72dd9ea1ccbb98ee2dc4bf080772e8d9f13f3d75.tar.bz2
dotty-72dd9ea1ccbb98ee2dc4bf080772e8d9f13f3d75.zip
Fixes to class field initialization
Class fields were not initialized from constructor parameters before. This is now fixed. The fix uncovered some problems with the treatement of outer parameters which are now also corrected.
Diffstat (limited to 'src/dotty/tools/dotc/transform/Erasure.scala')
-rw-r--r--src/dotty/tools/dotc/transform/Erasure.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/Erasure.scala b/src/dotty/tools/dotc/transform/Erasure.scala
index 935482ef0..7fd5109c4 100644
--- a/src/dotty/tools/dotc/transform/Erasure.scala
+++ b/src/dotty/tools/dotc/transform/Erasure.scala
@@ -419,7 +419,7 @@ object Erasure extends TypeTestsCasts{
val restpe = sym.info.resultType
val ddef1 = untpd.cpy.DefDef(ddef)(
tparams = Nil,
- vparamss = ddef.vparamss.flatten :: Nil,
+ vparamss = (outer.paramDefs(sym) ::: ddef.vparamss.flatten) :: Nil,
tpt = untpd.TypedSplice(TypeTree(restpe).withPos(ddef.tpt.pos)),
rhs = ddef.rhs match {
case id @ Ident(nme.WILDCARD) => untpd.TypedSplice(id.withType(restpe))