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.
1 parent 8529885 commit c1b5150Copy full SHA for c1b5150
compiler/src/dotty/tools/dotc/typer/ErrorReporting.scala
@@ -157,10 +157,10 @@ object ErrorReporting {
157
if qualType.derivesFrom(defn.DynamicClass) then
158
"\npossible cause: maybe a wrong Dynamic method signature?"
159
else if attempts.nonEmpty then
160
+ val attemptStrings = attempts.map(_.showIndented(4)).distinct
161
val extMethods =
- if attempts.length > 1 then "Extension methods were"
162
+ if attemptStrings.length > 1 then "Extension methods were"
163
else "An extension method was"
- val attemptStrings = attempts.map(_.showIndented(4))
164
i""".
165
|$extMethods tried, but could not be fully constructed:
166
|
0 commit comments