File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ object Checking {
156156 if (arg.tpe.widen.isRef(defn.NothingClass ) ||
157157 ! paramBounds.exists ||
158158 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" )
160160
161161 def preCheckKinds (args : List [Tree ], paramBoundss : List [Type ])(using Context ): List [Tree ] = {
162162 val args1 = args.zipWithConserve(paramBoundss)(preCheckKind)
Original file line number Diff line number Diff line change 55-- Error: tests/neg-custom-args/kind-projector.scala:5:23 --------------------------------------------------------------
665 |class Bar1 extends Foo[Either[*, *]] // error
77 | ^^^^^^^^^^^^
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]
99-- Error: tests/neg-custom-args/kind-projector.scala:6:22 --------------------------------------------------------------
10106 |class Bar2 extends Foo[*] // error
1111 | ^
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 {
55
66 class B
77
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
99 val y : C2 [C ] = ???
1010
1111 def f [T ] = ???
Original file line number Diff line number Diff line change 11[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