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
[error] 18 | println(summon[Typeclass[A[Int]]])
[error] | ^
[error] |No best given instance of type Typeclass[A[Int]] was found for parameter x of method summon in object Predef.
[error] |I found:
[error] |
[error] | Typeclass.given_Typeclass_T[A[Int]](
[error] | /* ambiguous: both given instance given_Typeclass_T in o
bject Typeclass and given instance given_Base_A in object A match type Typeclass.Base[A[Int]] */
[error] | summon[Typeclass.Base[A[Int]]]
[error] | )
[error] |
[error] |But both given instance given_Typeclass_T in object Typeclass
and given instance given_Base_A in object A match type Typeclass.Base[A[Int]].
[error] one error found
Compiler version
3.6.3-3.7.0
Minimized code
Output
Expectation
code compiles without warnings (or errors on 3.7)
looks related to #22913 but here there is no real ambiguity
The text was updated successfully, but these errors were encountered: