summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2005-11-30 17:14:05 +0000
committerIulian Dragos <jaguarul@gmail.com>2005-11-30 17:14:05 +0000
commit31168656d770558c52c7cd1555621ce52ea8cfca (patch)
tree760230ac788f10153ac0ad56b8b2c61f147882c3
parent634e743658f07343913457108339e5b93bb0ef14 (diff)
downloadscala-31168656d770558c52c7cd1555621ce52ea8cfca.tar.gz
scala-31168656d770558c52c7cd1555621ce52ea8cfca.tar.bz2
scala-31168656d770558c52c7cd1555621ce52ea8cfca.zip
Added call to addSyntheticMethods for module cl...
Added call to addSyntheticMethods for module classes.
-rwxr-xr-xsources/scala/tools/nsc/typechecker/Typers.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/scala/tools/nsc/typechecker/Typers.scala b/sources/scala/tools/nsc/typechecker/Typers.scala
index 0df5c37f30..e8e51d1ab7 100755
--- a/sources/scala/tools/nsc/typechecker/Typers.scala
+++ b/sources/scala/tools/nsc/typechecker/Typers.scala
@@ -525,7 +525,9 @@ import collection.mutable.HashMap;
val clazz = mdef.symbol.moduleClass;
val impl1 = newTyper(context.make(mdef.impl, clazz, new Scope()))
.typedTemplate(mdef.impl, parentTypes(mdef.impl));
- copy.ModuleDef(mdef, mdef.mods, mdef.name, impl1) setType NoType
+ val impl2 = addSyntheticMethods(impl1, clazz);
+
+ copy.ModuleDef(mdef, mdef.mods, mdef.name, impl2) setType NoType
}
def addGetterSetter(stat: Tree): List[Tree] = stat match {