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
Copy file name to clipboardExpand all lines: jsoniter-scala-macros/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/macros/JsonCodecMaker.scala
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -775,7 +775,7 @@ object JsonCodecMaker {
775
775
776
776
defisGenericTuple(tpe: TypeRepr):Boolean= tpe match {
777
777
caseAppliedType(tTpe, _) if tTpe =:=TypeRepr.of[*:] =>true
778
-
case _ =>false
778
+
case _ =>tpe =:=TypeRepr.of[EmptyTuple]
779
779
}
780
780
781
781
defisNamedTuple(tpe: TypeRepr):Boolean= tpe match {
@@ -992,7 +992,7 @@ object JsonCodecMaker {
992
992
valtypeArgs= tupleTypeArgs(tTpe.asType)
993
993
valsize= typeArgs.size
994
994
valtupleTpe=
995
-
if (size <=22) defn.TupleClass(size).typeRef.appliedTo(typeArgs)
995
+
if (size >0&& size <=22) defn.TupleClass(size).typeRef.appliedTo(typeArgs)
Copy file name to clipboardExpand all lines: jsoniter-scala-macros/shared/src/test/scala-3/com/github/plokhotnyuk/jsoniter_scala/macros/JsonCodecMakerNewTypeSpec.scala
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -63,11 +63,11 @@ class JsonCodecMakerNewTypeSpec extends VerifyingSpec {
Copy file name to clipboardExpand all lines: jsoniter-scala-next-tests/shared/src/test/scala-3/com/github/plokhotnyuk/jsoniter_scala/macros/JsonCodecMakerNamedTupleSpec.scala
0 commit comments