We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 001bfc3 commit 2365308Copy full SHA for 2365308
compiler/src/dotty/tools/dotc/typer/Synthesizer.scala
@@ -228,7 +228,7 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
228
val monoTypeDef = untpd.TypeDef(tpnme.MirroredMonoType, untpd.TypeTree(monoType))
229
val newImpl = untpd.Template(
230
constr = untpd.emptyConstructor,
231
- parents = untpd.TypeTree(defn.ObjectType) :: Nil,
+ parents = untpd.TypeTree(defn.ObjectType) :: untpd.TypeTree(defn.JavaSerializableClass.typeRef) :: Nil,
232
derived = Nil,
233
self = EmptyValDef,
234
body = monoTypeDef :: Nil
0 commit comments