Skip to content

Commit ad58323

Browse files
committed
Fix typo in the comment
1 parent f16d565 commit ad58323

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/cc/CaptureRef.scala

+4-4
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ trait CaptureRef extends TypeProxy, ValueType:
124124
|| this.match
125125
case x @ TermRef(xpre: CaptureRef, _) if x.symbol == y.symbol =>
126126
// To show `{x.f} <:< {y.f}`, it is important to prove `x` and `y`
127-
// are equvalent, which means `x =:= y` in terms for subtyping,
128-
// not just `{x} =:= {y}`.
129-
// It is posible to construct two singleton types `x` and `y`,
130-
// which subumse each other, but are not equal references.
127+
// are equvalent, which means `x =:= y` in terms of subtyping,
128+
// not just `{x} =:= {y}` in terms of subcapturing.
129+
// It is possible to construct two singleton types `x` and `y`,
130+
// which subsume each other, but are not equal references.
131131
// See `tests/neg-custom-args/captures/path-prefix.scala` for example.
132132
withMode(Mode.IgnoreCaptures) {TypeComparer.isSameRef(xpre, ypre)}
133133
case _ =>

0 commit comments

Comments
 (0)