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 @@ -1058,10 +1058,15 @@ trait Implicits:
1058
1058
(searchCtx.scope eq ctx.scope) && (searchCtx.owner eq ctx.owner.owner)
1059
1059
do ()
1060
1060
1061
- try ImplicitSearch (pt, argument, span)(using searchCtx).bestImplicit
1062
- catch case ce : CyclicReference =>
1063
- ce.inImplicitSearch = true
1064
- throw ce
1061
+ def searchStr =
1062
+ if argument.isEmpty then i " argument of type $pt"
1063
+ else i " conversion from ${argument.tpe} to $pt"
1064
+
1065
+ CyclicReference .trace(i " searching for an implicit $searchStr" ):
1066
+ try ImplicitSearch (pt, argument, span)(using searchCtx).bestImplicit
1067
+ catch case ce : CyclicReference =>
1068
+ ce.inImplicitSearch = true
1069
+ throw ce
1065
1070
else NoMatchingImplicitsFailure
1066
1071
1067
1072
val result =
You can’t perform that action at this time.
0 commit comments