summaryrefslogtreecommitdiff
path: root/sources/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2005-11-10 15:06:47 +0000
committerMartin Odersky <odersky@gmail.com>2005-11-10 15:06:47 +0000
commit222cbc2dea024584855bf3b5f8c2a5c0ba07cfc3 (patch)
treefc15707256c403db6d21acfd6d2b8cc724955ab8 /sources/scala/tools/nsc/typechecker/Typers.scala
parentd888c78872d9170ee5627f8f435c261ac6df70e5 (diff)
downloadscala-222cbc2dea024584855bf3b5f8c2a5c0ba07cfc3.tar.gz
scala-222cbc2dea024584855bf3b5f8c2a5c0ba07cfc3.tar.bz2
scala-222cbc2dea024584855bf3b5f8c2a5c0ba07cfc3.zip
*** empty log message ***
Diffstat (limited to 'sources/scala/tools/nsc/typechecker/Typers.scala')
-rwxr-xr-xsources/scala/tools/nsc/typechecker/Typers.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/scala/tools/nsc/typechecker/Typers.scala b/sources/scala/tools/nsc/typechecker/Typers.scala
index 520272920c..c28cd4a3c7 100755
--- a/sources/scala/tools/nsc/typechecker/Typers.scala
+++ b/sources/scala/tools/nsc/typechecker/Typers.scala
@@ -509,7 +509,8 @@ import collection.mutable.HashMap;
val tpt1 = checkNoEscaping.privates(clazz.thisSym, typedType(cdef.tpt));
val impl1 = newTyper(context.make(cdef.impl, clazz, new Scope()))
.typedTemplate(cdef.impl, parentTypes(cdef.impl));
- copy.ClassDef(cdef, cdef.mods, cdef.name, tparams1, tpt1, addSyntheticMethods(impl1, clazz))
+ val impl2 = addSyntheticMethods(impl1, clazz);
+ copy.ClassDef(cdef, cdef.mods, cdef.name, tparams1, tpt1, impl2)
setType NoType
}