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 a79b826 commit fba7c31Copy full SHA for fba7c31
macros/src/main/scala-3/scalapb_playjson/ProtoMacrosPlay.scala
@@ -27,7 +27,7 @@ object ProtoMacrosPlay {
27
28
extension [A <: GeneratedMessage](companion: GeneratedMessageCompanion[A]) {
29
def fromJson(json: String): A =
30
- JsonFormat.fromJsonString[A](json)(companion)
+ JsonFormat.fromJsonString[A](json)(using companion)
31
32
def fromJsonOpt(json: String): Option[A] =
33
try {
@@ -85,7 +85,7 @@ object ProtoMacrosPlay {
85
JsonFormat.fromJsonString[A](str)
86
87
'{
88
- JsonFormat.fromJsonString[A](${ Expr(str) })($companion)
+ JsonFormat.fromJsonString[A](${ Expr(str) })(using $companion)
89
}
90
91
0 commit comments