We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7eed40 + 78a50f2 commit 81732c0Copy full SHA for 81732c0
compiler/src/dotty/tools/dotc/typer/Implicits.scala
@@ -1382,7 +1382,7 @@ abstract class SearchHistory { outer =>
1382
val wideTp = tp.widenExpr
1383
lazy val wildTp = wildApprox(wideTp)
1384
if (belowByname && (wildTp <:< wildPt)) false
1385
- else if ((wideTp.typeSize < ptSize && wideTp.coveringSet == ptCoveringSet) || (wildTp == wildPt)) true
+ else if ((wideTp.typeSize < ptSize && wideTp.coveringSet == ptCoveringSet) || (wildTp =:= wildPt)) true
1386
else loop(tl, isByname(tp) || belowByname)
1387
}
1388
tests/neg/i6058.scala
@@ -0,0 +1,3 @@
1
+object Test {
2
+ implicit def i1[I2, I3](i4: I2)(implicit i5: I2 => I3): I3 = ( ) // error
3
+}
0 commit comments