Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Implicits.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ abstract class SearchHistory { outer =>
val wideTp = tp.widenExpr
lazy val wildTp = wildApprox(wideTp)
if (belowByname && (wildTp <:< wildPt)) false
else if ((wideTp.typeSize < ptSize && wideTp.coveringSet == ptCoveringSet) || (wildTp == wildPt)) true
else if ((wideTp.typeSize < ptSize && wideTp.coveringSet == ptCoveringSet) || (wildTp =:= wildPt)) true
else loop(tl, isByname(tp) || belowByname)
}
else loop(tl, isByname(tp) || belowByname)
Expand Down
3 changes: 3 additions & 0 deletions tests/neg/i6058.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
object Test {
implicit def i1[I2, I3](i4: I2)(implicit i5: I2 => I3): I3 = ( ) // error
}