File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ object Symbols {
199199 }
200200
201201 /** Enter this symbol in its class owner after given `phase`. Create a fresh
202- * denotation for its owner class if the class has not yet already one
202+ * denotation for its owner class if the class does not already have one
203203 * that starts being valid after `phase`.
204204 * @pre Symbol is a class member
205205 */
@@ -225,7 +225,7 @@ object Symbols {
225225 }
226226
227227 /** Remove symbol from scope of owning class after given `phase`. Create a fresh
228- * denotation for its owner class if the class has not yet already one that starts being valid after `phase`.
228+ * denotation for its owner class if the class does not already have one that starts being valid after `phase`.
229229 * @pre Symbol is a class member
230230 */
231231 def dropAfter (phase : DenotTransformer )(using Context ): Unit =
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