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
defisNamedTuple(tpe: TypeRepr):Boolean= tpe match {
787
800
caseAppliedType(ntTpe, _) if ntTpe.dealias.typeSymbol.fullName =="scala.NamedTuple$.NamedTuple"=>true
788
801
case _ =>false
@@ -995,13 +1008,7 @@ object JsonCodecMaker {
995
1008
// Borrowed from an amazing work of Aleksander Rainko: https://github.com/arainko/ducktape/blob/8d779f0303c23fd45815d3574467ffc321a8db2b/ducktape/src/main/scala/io/github/arainko/ducktape/internal/Structure.scala#L188-L199
996
1009
valnames= tupleTypeArgs(nTpe.dealias.asType).map { caseConstantType(StringConstant(name)) => name }
997
1010
valtypeArgs= tupleTypeArgs(tTpe.dealias.asType)
998
-
valsize= typeArgs.size
999
-
valtupleTpe=
1000
-
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
-24Lines changed: 0 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -57,30 +57,6 @@ class JsonCodecMakerNewTypeSpec extends VerifyingSpec {
57
57
valcodecOfIArrays= make[IArrays]
58
58
59
59
"JsonCodecMaker.make generate codecs which" should {
60
-
"serialize and deserialize tuples with arities greater than 22" in {
0 commit comments