You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see a bug when serialize to case class A(fields: Map[String, Int] = Map())
Generated code becomes: private[this] val c0: scala.collection.immutable.Map[String,Int] = Map.empty[String];
without default value, it's fine
The bug due to this line of code:
genReadMap(q"var x = ${withNullValueFor(tpe)(q"${collectionCompanion(tpe)}.empty[$tpe1]")}",
q"x = x.updated(in.readKeyAsLong(), ${genReadVal(tpe1, nullValue(tpe1), isStringified)})")
collectionCompanion(tpe)}.empty[$tpe1] should be collectionCompanion(tpe)}.empty[$tpe1,$tpe2]
The text was updated successfully, but these errors were encountered:
I see a bug when serialize to
case class A(fields: Map[String, Int] = Map())
Generated code becomes:
private[this] val c0: scala.collection.immutable.Map[String,Int] = Map.empty[String];
without default value, it's fine
The bug due to this line of code:
collectionCompanion(tpe)}.empty[$tpe1]
should becollectionCompanion(tpe)}.empty[$tpe1,$tpe2]
The text was updated successfully, but these errors were encountered: