-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scala 3 macro cannot find Writes for Seq[Map[String, T]] #974
Comments
scala> summon[Format[Seq[Map[String, Result]]]]
-- [E172] Type Error: ----------------------------------------------------------
1 |summon[Format[Seq[Map[String, Result]]]]
| ^
|Ambiguous given instances: both method genericMapWrites in trait DefaultWrites and method mapWrites in trait DefaultWrites match type play.api.libs.json.Writes[A] of parameter x of method summon in object Predef
1 error found |
sgodbillon
added a commit
to sgodbillon/play-json
that referenced
this issue
Mar 3, 2024
…String, T]] Moved the deprecated method `DefaultWrites.mapWrites` into `LowPriorityWrites` to get rid of the ambiguity.
5 tasks
sgodbillon
added a commit
to sgodbillon/play-json
that referenced
this issue
Mar 4, 2024
…String, T]] Moved the deprecated method `DefaultWrites.mapWrites` into `LowPriorityWrites` to get rid of the ambiguity.
sgodbillon
added a commit
to sgodbillon/play-json
that referenced
this issue
Mar 5, 2024
…String, T]] Moved the deprecated method `DefaultWrites.mapWrites` into `LowPriorityWrites` to get rid of the ambiguity.
cchantep
pushed a commit
that referenced
this issue
Mar 5, 2024
5 tasks
mkurz
added a commit
that referenced
this issue
Apr 29, 2024
[2.10.x] Fix #974 – Scala 3 macro cannot find Writes for Seq[Map[String, T]] (backport #993) by @sgodbillon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code
Scala 2.13.12 (works)
Scala 3.3.1 (fails)
The text was updated successfully, but these errors were encountered: