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
-- [E172] Type Error: tests/neg/19414-desugared.scala:22:34 ------------------------------------------------------------
2
2
22 | summon[BodySerializer[JsObject]] // error: Ambiguous given instances
3
3
| ^
4
-
|Ambiguous given instances: both given instance given_Writer_JsValue and given instance given_Writer_JsObject match type Writer[B] of parameter writer of given instance given_BodySerializer_B
4
+
|No given instance of type BodySerializer[JsObject] was found for parameter x of method summon in object Predef.
5
+
|I found:
6
+
|
7
+
| given_BodySerializer_B[B](
8
+
| writer =
9
+
| /* ambiguous: both given instance given_Writer_JsValue and given instance given_Writer_JsObject match type Writer[B] */
10
+
| summon[Writer[B]]
11
+
| ,
12
+
| this.given_BodySerializer_B$default$2[B])
13
+
|
14
+
|But both given instance given_Writer_JsValue and given instance given_Writer_JsObject match type Writer[B].
-- [E172] Type Error: tests/neg/19414.scala:15:34 ----------------------------------------------------------------------
2
2
15 | summon[BodySerializer[JsObject]] // error: Ambiguous given instances
3
3
| ^
4
-
|Ambiguous given instances: both given instance given_Writer_JsValue and given instance given_Writer_JsObject match type Writer[B] of a context parameter of given instance given_BodySerializer_B
4
+
|No given instance of type BodySerializer[JsObject] was found for parameter x of method summon in object Predef.
5
+
|I found:
6
+
|
7
+
| given_BodySerializer_B[B](
8
+
| evidence$1 =
9
+
| /* ambiguous: both given instance given_Writer_JsValue and given instance given_Writer_JsObject match type Writer[B] */
10
+
| summon[Writer[B]]
11
+
| ,
12
+
| this.given_BodySerializer_B$default$2[B])
13
+
|
14
+
|But both given instance given_Writer_JsValue and given instance given_Writer_JsObject match type Writer[B].
0 commit comments