Skip to content

Commit 82541da

Browse files
committed
grammar fixes
1 parent cbedf64 commit 82541da

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

compiler/src/dotty/tools/dotc/core/Symbols.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 =

compiler/src/dotty/tools/dotc/typer/Checking.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

tests/neg-custom-args/kind-projector.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
-- Error: tests/neg-custom-args/kind-projector.scala:5:23 --------------------------------------------------------------
66
5 |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 --------------------------------------------------------------
1010
6 |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]

tests/neg/kinds1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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] = ???

tests/pending/neg/kinds1.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
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

0 commit comments

Comments
 (0)