Skip to content

Commit 2365308

Browse files
committed
Make anonymous mirrors serializable
1 parent 001bfc3 commit 2365308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Synthesizer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
228228
val monoTypeDef = untpd.TypeDef(tpnme.MirroredMonoType, untpd.TypeTree(monoType))
229229
val newImpl = untpd.Template(
230230
constr = untpd.emptyConstructor,
231-
parents = untpd.TypeTree(defn.ObjectType) :: Nil,
231+
parents = untpd.TypeTree(defn.ObjectType) :: untpd.TypeTree(defn.JavaSerializableClass.typeRef) :: Nil,
232232
derived = Nil,
233233
self = EmptyValDef,
234234
body = monoTypeDef :: Nil

0 commit comments

Comments
 (0)