File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -1084,10 +1084,15 @@ trait Implicits:
1084
1084
(searchCtx.scope eq ctx.scope) && (searchCtx.owner eq ctx.owner.owner)
1085
1085
do ()
1086
1086
1087
- try ImplicitSearch (pt, argument, span)(using searchCtx).bestImplicit
1088
- catch case ce : CyclicReference =>
1089
- ce.inImplicitSearch = true
1090
- throw ce
1087
+ def searchStr =
1088
+ if argument.isEmpty then i " argument of type $pt"
1089
+ else i " conversion from ${argument.tpe} to $pt"
1090
+
1091
+ CyclicReference .trace(i " searching for an implicit $searchStr" ):
1092
+ try ImplicitSearch (pt, argument, span)(using searchCtx).bestImplicit
1093
+ catch case ce : CyclicReference =>
1094
+ ce.inImplicitSearch = true
1095
+ throw ce
1091
1096
else NoMatchingImplicitsFailure
1092
1097
1093
1098
val result =
You can’t perform that action at this time.
0 commit comments