diff options
author | Ondrej Lhotak <olhotak@uwaterloo.ca> | 2014-10-29 17:12:36 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-11-22 20:10:21 +0100 |
commit | baaf851e3a5a74993ee1778d4135344037371dea (patch) | |
tree | db026a2a369295fa716e74858c0ce82ece6cf67e | |
parent | 7983a096ad80a9fe244ccd7361a6ddd9517344f2 (diff) | |
download | dotty-baaf851e3a5a74993ee1778d4135344037371dea.tar.gz dotty-baaf851e3a5a74993ee1778d4135344037371dea.tar.bz2 dotty-baaf851e3a5a74993ee1778d4135344037371dea.zip |
fix calls to tree copier that now requires multiple parameter lists
-rw-r--r-- | src/dotty/tools/dotc/parsing/JavaParsers.scala | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |