diff options
-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) } |