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
ambiguity2.scala:1:error: objectsth is not a member of packagescalaimportscala.sth
^
ambiguity2.scala:4:error: not found: value sth
deffoo(a: Int)(implicitb: sth.Sth):Unit= {}
^
ambiguity2.scala:5:error: ambiguous implicitvalues:
both value StringCanBuildFrom in objectPredef of type=> scala.collection.generic.CanBuildFrom[String,Char,String]
and method conforms in objectPredef of type [A]=><:<[A,A]
match expected type<error>
foo(2)
^
three errors found
It shouldn't report the last one.
The text was updated successfully, but these errors were encountered:
gives:
It shouldn't report the last one.
The text was updated successfully, but these errors were encountered: