From baaf851e3a5a74993ee1778d4135344037371dea Mon Sep 17 00:00:00 2001 From: Ondrej Lhotak Date: Wed, 29 Oct 2014 17:12:36 +0100 Subject: fix calls to tree copier that now requires multiple parameter lists --- src/dotty/tools/dotc/parsing/JavaParsers.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/dotty/tools/dotc/parsing/JavaParsers.scala b/src/dotty/tools/dotc/parsing/JavaParsers.scala index 81e2bb502..f524827b9 100644 --- a/src/dotty/tools/dotc/parsing/JavaParsers.scala +++ b/src/dotty/tools/dotc/parsing/JavaParsers.scala @@ -618,8 +618,8 @@ object JavaParsers { if (statics.isEmpty) cdef else { val template = cdef.rhs.asInstanceOf[Template] - cpy.TypeDef(cdef, cdef.mods, cdef.name, - cpy.Template(template, template.constr, template.parents, template.self, + cpy.TypeDef(cdef)(cdef.mods, cdef.name, + cpy.Template(template)(template.constr, template.parents, template.self, importCompanionObject(cdef) :: template.body), cdef.tparams) } -- cgit v1.2.3