Skip to content

Commit 21d984d

Browse files
committed
Fix error message during codec derivation
1 parent 7911c8a commit 21d984d

File tree

1 file changed

+1
-1
lines changed
  • jsoniter-scala-macros/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/macros

1 file changed

+1
-1
lines changed

jsoniter-scala-macros/shared/src/main/scala-3/com/github/plokhotnyuk/jsoniter_scala/macros/JsonCodecMaker.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ object JsonCodecMaker {
11451145
case _ => polyRes.appliedTo(ctArgs)
11461146
case other => fail(s"Primary constructor for ${tpe.show} is not MethodType or PolyType but $other")
11471147
} else if (sym.isTerm) Ref(sym).tpe
1148-
else fail("Only concrete (no free type parametes) Scala classes & objects are supported for ADT leaf classes. " +
1148+
else fail("Only concrete (no free type parameters) Scala classes & objects are supported for ADT leaf classes. " +
11491149
s"Please consider using of them for ADT with base '${tpe.show}' or provide a custom implicitly accessible codec for the ADT base.")
11501150
}
11511151
}

0 commit comments

Comments
 (0)