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
classFooimplicitdeffromInt[A<%Int](x: A) =newFoo// #1implicitdeffromString[A<%String](x: A) =newFoo// #20:Foo
gives
error: type mismatch;
found : Int(0)
required: this.Foo
Note that implicit conversions are not applicable because they are ambiguous:
both method fromInt of type [A](x: A)(implicit evidence$1: A => Int)this.Foo
and method fromString of type [A](x: A)(implicit evidence$2: A => String)this.Foo
are possible conversion functions from Int(0) to this.Foo
0: Foo
^
This does not happen 2.11.2.
The text was updated successfully, but these errors were encountered:
gives
This does not happen 2.11.2.
The text was updated successfully, but these errors were encountered: