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 53780f9 commit e614e2dCopy full SHA for e614e2d
macros/src/main/scala/com/avsystem/commons/macros/serialization/GenCodecMacros.scala
@@ -120,7 +120,7 @@ class GenCodecMacros(ctx: blackbox.Context) extends CodecMacroCommons(ctx) with
120
q"""
121
new $SerializationPkg.SingletonCodec[$tpe](${tpe.toString}, $safeSingleValue) {
122
..${generated.map({ case (sym, depTpe) => generatedDepDeclaration(sym, depTpe) })}
123
- override def size(value: $tpe): $IntCls = ${generated.size}
+ override def size(value: $tpe, output: $OptCls[$SerializationPkg.SequentialOutput]): $IntCls = ${generated.size}
124
override def writeFields(output: $SerializationPkg.ObjectOutput, value: $tpe): $UnitCls = {
125
..${generated.map({ case (sym, _) => generatedWrite(sym) })}
126
}
0 commit comments