Added call to addSyntheticMethods for module classes.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@4993 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
ca509e9300
commit
7eb88496c7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue