File tree 4 files changed +5
-5
lines changed
compiler/src/dotty/tools/dotc/typer 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ object Checking {
156
156
if (arg.tpe.widen.isRef(defn.NothingClass ) ||
157
157
! paramBounds.exists ||
158
158
arg.tpe.hasSameKindAs(paramBounds.bounds.hi)) arg
159
- else errorTree(arg, em " Type argument ${arg.tpe} has not the same kind as its bound $paramBounds" )
159
+ else errorTree(arg, em " Type argument ${arg.tpe} does not have the same kind as its bound $paramBounds" )
160
160
161
161
def preCheckKinds (args : List [Tree ], paramBoundss : List [Type ])(using Context ): List [Tree ] = {
162
162
val args1 = args.zipWithConserve(paramBoundss)(preCheckKind)
Original file line number Diff line number Diff line change 5
5
-- Error: tests/neg-custom-args/kind-projector.scala:5:23 --------------------------------------------------------------
6
6
5 |class Bar1 extends Foo[Either[*, *]] // error
7
7
| ^^^^^^^^^^^^
8
- | Type argument Either has not the same kind as its bound [_$1]
8
+ | Type argument Either does not have the same kind as its bound [_$1]
9
9
-- Error: tests/neg-custom-args/kind-projector.scala:6:22 --------------------------------------------------------------
10
10
6 |class Bar2 extends Foo[*] // error
11
11
| ^
12
- | Type argument _$4 has not the same kind as its bound [_$1]
12
+ | Type argument _$4 does not have the same kind as its bound [_$1]
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ object Test {
5
5
6
6
class B
7
7
8
- val x : C [C ] = ??? // error: Type argument has not the same kind as its bound
8
+ val x : C [C ] = ??? // error: Type argument does not have the same kind as its bound
9
9
val y : C2 [C ] = ???
10
10
11
11
def f [T ] = ???
Original file line number Diff line number Diff line change 1
1
[68..69] in kinds1.scala
2
- Type argument Test.C has not the same kind as its bound
2
+ Type argument Test.C does not have the same kind as its bound
You can’t perform that action at this time.
0 commit comments