File tree 2 files changed +5
-4
lines changed
compiler/src/dotty/tools/dotc/typer 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import Flags._
14
14
import TypeErasure .{erasure , hasStableErasure }
15
15
import Mode .ImplicitsEnabled
16
16
import NameOps ._
17
- import NameKinds .LazyImplicitName
17
+ import NameKinds .{ LazyImplicitName , EvidenceParamName }
18
18
import Symbols ._
19
19
import Denotations ._
20
20
import Types ._
@@ -1265,7 +1265,8 @@ trait Implicits { self: Typer =>
1265
1265
def addendum = if (qt1 eq qt) " " else (i " \n which is an alias of: $qt1" )
1266
1266
em " parameter of ${qual.tpe.widen}$addendum"
1267
1267
case _ =>
1268
- em " parameter ${paramName} of $methodStr"
1268
+ em " ${ if paramName.is(EvidenceParamName ) then " an implicit parameter"
1269
+ else s " parameter $paramName" } of $methodStr"
1269
1270
}
1270
1271
1271
1272
private def strictEquality (implicit ctx : Context ): Boolean =
Original file line number Diff line number Diff line change 19
19
-- Error: tests/neg/missing-implicit1.scala:23:42 ----------------------------------------------------------------------
20
20
23 | List(1, 2, 3).traverse(x => Option(x)) // error
21
21
| ^
22
- |no implicit argument of type testObjectInstance.Zip[Option] was found for parameter evidence$1 of method traverse in trait Traverse
22
+ |no implicit argument of type testObjectInstance.Zip[Option] was found for an implicit parameter of method traverse in trait Traverse
23
23
|
24
24
|The following import might fix the problem:
25
25
|
68
68
-- Error: tests/neg/missing-implicit1.scala:50:42 ----------------------------------------------------------------------
69
69
50 | List(1, 2, 3).traverse(x => Option(x)) // error
70
70
| ^
71
- |no implicit argument of type Zip[Option] was found for parameter evidence$2 of method traverse in trait Traverse
71
+ |no implicit argument of type Zip[Option] was found for an implicit parameter of method traverse in trait Traverse
72
72
|
73
73
|The following import might fix the problem:
74
74
|
You can’t perform that action at this time.
0 commit comments